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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
get
(HttpHeader header) getField
(int index) Get a Field by index.getField
(HttpHeader header) int
hashCode()
iterator()
int
size()
stream()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, isEqualTo
Methods 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:
asImmutable
in interfaceHttpFields
-
equals
-
get
- Specified by:
get
in interfaceHttpFields
-
get
- Specified by:
get
in interfaceHttpFields
-
getField
- Specified by:
getField
in interfaceHttpFields
-
getField
- Specified by:
getField
in interfaceHttpFields
-
getField
Description copied from interface:HttpFields
Get a Field by index.- Specified by:
getField
in 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:
size
in interfaceHttpFields
-
stream
- Specified by:
stream
in interfaceHttpFields
-
toString
-