Package org.eclipse.jetty.http
Class HttpFields.Immutable
java.lang.Object
org.eclipse.jetty.http.HttpFields.Immutable
- All Implemented Interfaces:
Iterable<HttpField>,HttpFields
- Enclosing interface:
- HttpFields
HTTP Fields. A collection of HTTP header and or Trailer fields.
This class is not synchronized as it is expected that modifications will only be performed by a single thread.
The cookie handling provided by this class is guided by the Servlet specification and RFC6265.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpFields
HttpFields.Immutable, HttpFields.Mutable -
Field Summary
Fields inherited from interface org.eclipse.jetty.http.HttpFields
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(HttpHeader header) getField(int index) Get a Field by index.getField(HttpHeader header) inthashCode()iterator()intsize()stream()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.http.HttpFields
asString, contains, contains, contains, contains, contains, contains, getCSV, getCSV, getDateField, getFieldNames, getFieldNamesCollection, getFields, getFields, getLongField, getLongField, getQualityCSV, getQualityCSV, getQualityCSV, getValues, getValuesList, getValuesList, isEqualToMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Immutable
Initialize HttpFields from copy.- Parameters:
fields- the fields to copy data from
-
-
Method Details
-
asImmutable
- Specified by:
asImmutablein interfaceHttpFields
-
equals
-
get
- Specified by:
getin interfaceHttpFields
-
get
- Specified by:
getin interfaceHttpFields
-
getField
- Specified by:
getFieldin interfaceHttpFields
-
getField
- Specified by:
getFieldin interfaceHttpFields
-
getField
Description copied from interface:HttpFieldsGet a Field by index.- Specified by:
getFieldin interfaceHttpFields- Parameters:
index- the field index- Returns:
- A Field value or null if the Field value has not been set
-
hashCode
public int hashCode() -
iterator
-
size
public int size()- Specified by:
sizein interfaceHttpFields
-
stream
- Specified by:
streamin interfaceHttpFields
-
toString
-