MultiValueMap implementation for wrapping Netty HTTP headers.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public | Netty5HeadersAdapter(HttpHeaders headers)
Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(String
the key key, String the value to be added value)Implements org. |
| public void | addAll(String
they key key, List<? extends String> the values to be added values)Implements org. |
| public void | addAll(MultiValueMap<String, String>
the values to be added values)Implements org. MultiValueMap to the current values.
|
| public void | clear()
Implements java. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
| public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
| public List | get(Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
| public String | getFirst(String
the key key)Implements org. |
| public boolean | |
| public Set | |
| public List | put(String
key with which the specified value is to be associated key, List<String> value to be associated with the specified key value)Implements java. |
| public void | |
| public List | remove(Object
key whose mapping is to be removed from the map key)Implements java. |
| public void | set(String
the key key, String the value to set value)Implements org. |
| public void | setAll(Map<String, String>
the values. values)Implements org. |
| public int | |
| public Map | toSingleValueMap()
Implements org. Map with the first values contained in this MultiValueMap.
|
| public String | |
| public Collection | values()
Implements java. Collection view of the values contained in this map.
|
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| Netty5HeadersAdapter | back to summary |
|---|---|
| public Netty5HeadersAdapter(HttpHeaders headers) Create a new | |
| add | back to summary |
|---|---|
| public void add(String key, String value) Implements org. Doc from org. Add the given single value to the current list of values for the given key. | |
| addAll | back to summary |
|---|---|
| public void addAll(String key, List<? extends String> values) Implements org. Doc from org. Add all the values of the given list to the current list of values for the given key. | |
| addAll | back to summary |
|---|---|
| public void addAll(MultiValueMap<String, String> values) Implements org. Doc from org. Add all the values of the given
| |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| get | back to summary |
|---|---|
| public List Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| getFirst | back to summary |
|---|---|
| public String getFirst(String key) Implements org. Doc from org. Return the first value for the given key. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| put | back to summary |
|---|---|
| public List Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends String, ? extends List<String>> map) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling | |
| remove | back to summary |
|---|---|
| public List Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. | |
| set | back to summary |
|---|---|
| public void set(String key, String value) Implements org. Doc from org. Set the given single value under the given key. | |
| setAll | back to summary |
|---|---|
| public void setAll(Map<String, String> values) Implements org. Doc from org. Set the given values under. | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| toSingleValueMap | back to summary |
|---|---|
| public Map Implements org. Doc from org. Return a | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Map. |
| names | back to summary |
|---|---|
| private final Iterator<CharSequence> names | |
| EntryIterator | back to summary |
|---|---|
| private EntryIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Map. Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Field and Description |
|---|---|
| private final CharSequence |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public List | |
| public List | setValue(List<String>
new value to be stored in this entry value)Implements java. |
| key | back to summary |
|---|---|
| private final CharSequence key | |
| HeaderEntry | back to summary |
|---|---|
| pack-priv HeaderEntry(CharSequence key) | |
| getKey | back to summary |
|---|---|
| public String getKey() Implements java. Doc from java. Returns the key corresponding to this entry. | |
| getValue | back to summary |
|---|---|
| public List Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public List Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| HeaderNames | back to summary |
|---|---|
| private HeaderNames() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| Modifier and Type | Field and Description |
|---|---|
| private CharSequence | |
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public void | remove()
Overrides default java. |
| currentName | back to summary |
|---|---|
| private CharSequence currentName
| |
| iterator | back to summary |
|---|---|
| private final Iterator<CharSequence> iterator | |
| HeaderNamesIterator | back to summary |
|---|---|
| private HeaderNamesIterator(Iterator<CharSequence> iterator) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public String next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |