An ordered collection of HttpFields that represent the HTTP headers
or HTTP trailers of an HTTP request or an HTTP response.
HttpFields is immutable and typically used in server-side HTTP requests
and client-side HTTP responses, while HttpFields. is mutable and
typically used in server-side HTTP responses and client-side HTTP requests.
| Modifier and Type | Class and Description |
|---|---|
| public static class | HttpFields.ImmutableHttpFields
Deprecated
for removal.
|
| public static interface | HttpFields.Mutable
A mutable version of |
| public static class | HttpFields.MutableHttpFields
Deprecated
for removal.
|
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpField | |
| public static final HttpField | |
| public static final HttpField | |
| public static final HttpFields | EMPTY
A constant for an immutable and empty |
| public static final HttpField |
| Modifier and Type | Method and Description |
|---|---|
| public default HttpFields | Returns: a new immutable copy of thisHttpFields instanceReturns an immutable copy of this |
| public default String | |
| public static HttpFields. | |
| public static HttpFields. | |
| public static HttpFields. | build(HttpFields
the fields)HttpFields to copyReturns a new |
| public static HttpFields. | build(HttpFields
the fields, HttpField HttpFields to copythe replaceField)HttpField that replaces others with the same nameReturns a new |
| public static HttpFields. | Returns: a newMutable instance containing the given HttpFields
without the fields with the given namesthe fields, EnumSet<HttpHeader> HttpFields to copythe names of the fields to remove removeFields)Returns a new |
| public default boolean | |
| public default boolean | Returns: whether this instance contains the givenHttpHeader with the given valuethe name of the field to search for header, String the value to search for value)Returns whether this instance contains the given |
| public default boolean | |
| public default boolean | Returns: whether this instance contains the given field namethe field name to search for header)Returns whether this instance contains the given field name. |
| public default boolean | Returns: whether this instance contains at least one of the given field namesthe field names to search among headers)Returns whether this instance contains at least one of the given field names. |
| public default boolean | |
| public default boolean | Returns: True iff the value is contained in the field value entirely or as the last element of a quoted comma separated list.The header, String HttpHeader type to search for.The value to search for (case-insensitive) value)Look for a value as the last value in a possible multivalued field. |
| public static HttpFields | from(HttpField...
the fields)HttpFields to be contained in the returned instanceReturns an immutable |
| public default HttpFields | Returns: this instanceImplements java. Supplies this instance, typically used to supply HTTP trailers. |
| public default String | Returns: the raw value of the first field with the given field name, ornull if no such header is presentthe field name to search for header)Returns the encoded value of the first field with the given field name,
or |
| public default String | |
| public default List | Returns: a list of all the values of all the fields with the given name, or an empty list if no such field name is presentthe field name to search for header, boolean whether the fields values should retain the quotes keepQuotes)Returns all the values of all the fields with the given field name. |
| public default List | Returns: a list of all the values of all the fields with the given name, or an empty list if no such field name is presentthe case-insensitive field name to search for name, boolean whether the fields values should retain the quotes keepQuotes)Returns all the values of all the fields with the given field name. |
| public default long | Returns: the value of the field as the number of milliseconds since Unix Epoch, or -1 if no such field is presentthe case-insensitive field name to search for name)Returns the value of a date field as the number of milliseconds since the Unix Epoch, or -1 if no such field is present. |
| public default long | Returns: the value of the field as the number of milliseconds since Unix Epoch, or -1 if no such field is presentthe field name to search for header)Returns the value of a date field as the number of milliseconds since the Unix Epoch, or -1 if no such field is present. |
| public default HttpField | |
| public default HttpField | getField(HttpHeader
the field name to search for header)Returns the first |
| public default HttpField | |
| public default Enumeration | |
| public default Set | |
| public default List | Returns: a list of theHttpFields with the given field name,
or an empty list if no such field name is presentthe field name to search for header)Returns all the |
| public default List | |
| private <T> List | |
| public default String | Returns: the raw value of the last field with the given field name, ornull if no such header is presentthe field name to search for header)Returns the encoded value of the last field with the given field name,
or |
| public default long | Returns: the value of the field as along,
or -1 if no such field is presentthe case-insensitive field name name)Returns the value of a field as a |
| public default long | Returns: the value of the field as along,
or -1 if no such field is presentthe field name header)Returns the value of a field as a |
| public default List | Returns: a list of all the values of all the fields with the given name, split and sorted in quality order, or an empty list if no such field name is presentthe field name to search for header)Returns all the values of all the fields with the given name,
split and sorted in quality order using |
| public default List | Returns: a list of all the values of all the fields with the given name, split and sorted in quality order and optionally further sorted with the given function, or an empty list if no such field name is presentthe field name to search for header, ToIntFunction<String> the secondary sort function, or secondaryOrdering)null
for no secondary sortReturns all the values of all the fields with the given name,
split and sorted first in quality order and then optionally further
sorted with the given function, using |
| public default List | Returns: a list of all the values of all the fields with the given name, split and sorted in quality order, or an empty list if no such field name is presentthe case-insensitive field name to search for name)Returns all the values of all the fields with the given name,
split and sorted in quality order using |
| public default Enumeration | Returns: anEnumeration of the encoded values of all
the fields with the given namethe case-insensitive field name to search for name)Returns an |
| public default List | Returns: a list of the encoded values of all the fields with the given name, or an empty list if no such field name is presentthe field name to search for header)Returns a list of the encoded values of all the fields with the given name. |
| public default List | Returns: a list of the encoded values of all the fields with the given name, or an empty list if no such field name is presentthe field name to search for name)Returns a list of the encoded values of all the fields with the given name. |
| public default boolean | Returns: whether the two instances are equalthe that)HttpFields instance to compare toReturns whether this instance is equal to the given instance. |
| public default Iterator | |
| public default ListIterator | |
| public ListIterator | |
| private static long | |
| public default int | |
| public default Stream |