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.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final HttpField[] | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public HttpFields | asImmutable()
Overrides default org. Returns an immutable copy of this |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public String | get(String
the case-insensitive field name to search for name)Overrides default org. Returns the encoded value of the first field with the given field name,
or |
| public String | get(HttpHeader
the field name to search for header)Overrides default org. Returns the encoded value of the first field with the given field name,
or |
| public HttpField | getField(HttpHeader
the field name to search for header)Overrides default org. Returns the first |
| public HttpField | getField(String
the case-insensitive field name to search for name)Overrides default org. Returns the first |
| public HttpField | getField(int
the index of the index)HttpFieldOverrides default org. Returns the |
| public int | |
| public ListIterator | |
| public int | |
| public Stream | |
| public String |
| _fields | back to summary |
|---|---|
| pack-priv final HttpField[] _fields | |
| _size | back to summary |
|---|---|
| pack-priv final int _size | |
| ImmutableHttpFields | back to summary |
|---|---|
| protected ImmutableHttpFields(HttpField[] fields) Initialize HttpFields from copy.
| |
| ImmutableHttpFields | back to summary |
|---|---|
| protected ImmutableHttpFields(HttpField[] fields, int size) | |
| asImmutable | back to summary |
|---|---|
| public HttpFields asImmutable() Overrides default org. Doc from org. Returns an immutable copy of this
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public String get(String name) Overrides default org. Doc from org. Returns the encoded value of the first field with the given field name,
or The comparison of field name is case-insensitive via
In case of multi-valued fields, the returned value is the encoded
value, including commas and quotes, as returned by | |
| get | back to summary |
|---|---|
| public String get(HttpHeader header) Overrides default org. Doc from org. Returns the encoded value of the first field with the given field name,
or In case of multi-valued fields, the returned value is the encoded
value, including commas and quotes, as returned by
| |
| getField | back to summary |
|---|---|
| public HttpField getField(HttpHeader header) Overrides default org. Doc from org. Returns the first
| |
| getField | back to summary |
|---|---|
| public HttpField getField(String name) Overrides default org. Doc from org. Returns the first The comparison of field name is case-insensitive via
| |
| getField | back to summary |
|---|---|
| public HttpField getField(int index) Overrides default org. Doc from org. Returns the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Implements org.
| |
| size | back to summary |
|---|---|
| public int size() Overrides default org.
| |
| stream | back to summary |
|---|---|
| public Stream Overrides default org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(HttpField
the element to insert field)Implements java. |
| public boolean | hasNext()
Implements java. true if this list iterator has more elements when
traversing the list in the forward direction.
|
| public boolean | hasPrevious()
Implements java. true if this list iterator has more elements when
traversing the list in the reverse direction.
|
| public HttpField | next()
Implements java. |
| public int | nextIndex()
Implements java. next.
|
| public HttpField | previous()
Implements java. |
| public int | previousIndex()
Implements java. previous.
|
| public void | remove()
Implements java. next or previous (optional operation).
|
| public void | set(HttpField
the element with which to replace the last element returned by
field)next or previousImplements java. next or
previous with the specified element (optional operation).
|
| Listerator | back to summary |
|---|---|
| pack-priv Listerator(int index) | |
| add | back to summary |
|---|---|
| public void add(HttpField field) Implements java. Doc from java. Inserts the specified element into the list (optional operation).
The element is inserted immediately before the element that
would be returned by | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public HttpField next() Implements java. Doc from java. Returns the next element in the list and advances the cursor position.
This method may be called repeatedly to iterate through the list,
or intermixed with calls to | |
| nextIndex | back to summary |
|---|---|
| public int nextIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| previous | back to summary |
|---|---|
| public HttpField previous() Implements java. Doc from java. Returns the previous element in the list and moves the cursor
position backwards. This method may be called repeatedly to
iterate through the list backwards, or intermixed with calls to
| |
| previousIndex | back to summary |
|---|---|
| public int previousIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| remove | back to summary |
|---|---|
| public void remove() Implements java. Doc from java. Removes from the list the last element that was returned by
| |
| set | back to summary |
|---|---|
| public void set(HttpField field) Implements java. Doc from java. Replaces the last element returned by | |