Class HttpFields.Mutable.Wrapper
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 instances.- 
Nested Class Summary
Nested classes/interfaces inherited from interface HttpFields
HttpFields.ImmutableHttpFields, HttpFields.Mutable, HttpFields.MutableHttpFieldsNested classes/interfaces inherited from interface HttpFields.Mutable
HttpFields.Mutable.Wrapper - 
Field Summary
Fields inherited from interface HttpFields
CONNECTION_CLOSE, CONNECTION_KEEPALIVE, CONTENT_LENGTH_0, EMPTY, EXPIRES_01JAN1970 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionAdds the givenHttpFieldto this instance.clear()Removes all the fields from this instance.listIterator(int index) onAddField(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).onReplaceField(HttpField oldField, HttpField newField) Puts the givenHttpFieldinto this instance.intsize()stream()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpFields
asImmutable, asString, contains, contains, contains, contains, contains, contains, containsLast, get, get, get, getCSV, getCSV, getDateField, getDateField, getField, getField, getField, getFieldNames, getFieldNamesCollection, getFields, getFields, getLast, getLongField, getLongField, getQualityCSV, getQualityCSV, getQualityCSV, getValues, getValuesList, getValuesList, isEqualTo, iterator, listIteratorMethods inherited from interface HttpFields.Mutable
add, add, add, add, add, add, add, addCSV, addCSV, addDateField, computeField, computeField, ensureField, put, put, put, put, put, put, putDate, putDate, remove, remove, removeMethods inherited from interface Iterable
forEach, spliterator 
- 
Constructor Details
- 
Wrapper
 
 - 
 - 
Method Details
- 
getWrapped
 - 
onAddField
 - 
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.
 
 - 
onReplaceField
 - 
size
public int size()- Specified by:
 sizein interfaceHttpFields- Returns:
 - the number of 
HttpFields in this instance 
 - 
stream
- Specified by:
 streamin interfaceHttpFields- Returns:
 - a sequential stream of the 
HttpFields in this instance 
 - 
add
Description copied from interface:HttpFields.MutableAdds the given
HttpFieldto this instance.- Specified by:
 addin interfaceHttpFields.Mutable- Parameters:
 field- theHttpFieldto add- Returns:
 - this instance
 
 - 
put
Description copied from interface:HttpFields.MutablePuts the given
HttpFieldinto this instance.If a fields with the same name is present, the given field replaces it, and other existing fields with the same name are removed, so that only the given field will be present.
If a field with the same name is not present, the given field will be added.
- Specified by:
 putin interfaceHttpFields.Mutable- Parameters:
 field- the field to put- Returns:
 - this instance
 
 - 
clear
Description copied from interface:HttpFields.MutableRemoves all the fields from this instance.
- Specified by:
 clearin interfaceHttpFields.Mutable- Returns:
 - this instance
 
 - 
listIterator
- Specified by:
 listIteratorin interfaceHttpFields- Returns:
 - an iterator over the 
HttpFields in thisHttpFieldsstarting at the given index. - See Also:
 
 
 -