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.MutableHttpFieldsNested 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).booleanonRemoveField(HttpField field) Called when a field is removed (including as part of a put).intsize()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, waitMethods 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, isEqualToMethods 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, removeMethods 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:HttpFieldsEfficiently take the fields as an Immutable that cannot be changed by any further mutations to this instance.- Specified by:
takeAsImmutablein interfaceHttpFields- Returns:
- An immutable version of the fields.
-
size
public int size()- Specified by:
sizein interfaceHttpFields
-
stream
- Specified by:
streamin interfaceHttpFields
-
add
- Specified by:
addin interfaceHttpFields.Mutable
-
listIterator
- Specified by:
listIteratorin interfaceHttpFields.Mutable
-