MultiValueMap implementation for wrapping Apache HttpComponents
HttpClient headers.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpMessage |
| Access | Constructor and Description |
|---|---|
| public | HttpComponentsHeadersAdapter(HttpMessage message)
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. Add the given single value to the current list of values for the given key. |
| public void | addAll(String
they key key, List<? extends String> the values to be added values)Implements org. Add all the values of the given list to the current list of values for the given key. |
| public void | addAll(MultiValueMap<String, String>
the values to be added values)Implements org. Add all the values of the given |
| public void | clear()
Implements java. Removes all of the mappings from this map (optional operation). |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. Returns |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. Returns |
| public Set | entrySet()
Implements java. Returns a |
| public List | get(Object
the key whose associated value is to be returned key)Implements java. Returns the value to which the specified key is mapped,
or |
| public String | getFirst(String
the key key)Implements org. Return the first value for the given key. |
| 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 values)Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public void | |
| public List | remove(Object
key whose mapping is to be removed from the map key)Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public void | set(String
the key key, String the value to set value)Implements org. Set the given single value under the given key. |
| public void | setAll(Map<String, String>
the values. values)Implements org. Set the given values under. |
| public int | |
| public Map | toSingleValueMap()
Implements org. Return a |
| public String | |
| public Collection | values()
Implements java. Returns a |
| message | back to summary |
|---|---|
| private final HttpMessage message | |
| HttpComponentsHeadersAdapter | back to summary |
|---|---|
| public HttpComponentsHeadersAdapter(HttpMessage message) 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.
Satisfying this method's contract implies a non- | |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Map. |
| iterator | back to summary |
|---|---|
| private final Iterator<Header> iterator | |
| 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. | |
| 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. Replaces the value corresponding to this entry with the specified value (optional operation). |
| key | back to summary |
|---|---|
| private final String key | |
| HeaderEntry | back to summary |
|---|---|
| pack-priv HeaderEntry(String 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 | |