java.lang.Object
org.eclipse.jetty.http.HttpFields.Mutable.Wrapper
- All Implemented Interfaces:
Iterable<HttpField>
,Supplier<HttpFields>
,HttpFields
,HttpFields.Mutable
- Enclosing interface:
HttpFields.Mutable
A wrapper of
HttpFields
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpFields
HttpFields.ImmutableHttpFields, HttpFields.Mutable, HttpFields.MutableHttpFields
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpFields.Mutable
HttpFields.Mutable.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.http.HttpFields
CONNECTION_CLOSE, CONNECTION_KEEPALIVE, CONTENT_LENGTH_0, EMPTY, EXPIRES_01JAN1970
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononAddField
(HttpField field) Called when a field is added (including as part of a put).boolean
onRemoveField
(HttpField field) Called when a field is removed (including as part of a put).int
size()
stream()
Efficiently take the fields as an Immutable that cannot be changed by any further mutations to this instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.http.HttpFields
asImmutable, asString, contains, contains, contains, contains, contains, contains, get, get, get, getCSV, getCSV, getDateField, getDateField, getField, getField, getField, getFieldNames, getFieldNamesCollection, getFields, getFields, getLongField, getLongField, getQualityCSV, getQualityCSV, getQualityCSV, getValues, getValuesList, getValuesList, isEqualTo
Methods inherited from interface org.eclipse.jetty.http.HttpFields.Mutable
add, add, add, add, add, add, addCSV, addCSV, addDateField, clear, computeField, computeField, ensureField, iterator, put, put, put, put, put, put, put, putDate, putDate, remove, remove, remove
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Wrapper
-
-
Method Details
-
onAddField
Called when a field is added (including as part of a put).- Parameters:
field
- The field being added.- Returns:
- The field to add, or null if the add is to be ignored.
-
onRemoveField
Called when a field is removed (including as part of a put).- Parameters:
field
- The field being removed.- Returns:
- True if the field should be removed, false otherwise.
-
takeAsImmutable
Description copied from interface:HttpFields
Efficiently take the fields as an Immutable that cannot be changed by any further mutations to this instance.- Specified by:
takeAsImmutable
in interfaceHttpFields
- Returns:
- An immutable version of the fields.
-
size
public int size()- Specified by:
size
in interfaceHttpFields
-
stream
- Specified by:
stream
in interfaceHttpFields
-
add
- Specified by:
add
in interfaceHttpFields.Mutable
-
listIterator
- Specified by:
listIterator
in interfaceHttpFields.Mutable
-