HttpHeaders object that can only be read, not written to.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private MediaType | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(String
the header name headerName, String the header value headerValue)Overrides org. Implements org. |
| public void | addAll(String
they key key, List<? extends String> the values to be added values)Overrides org. Implements org. |
| public void | addAll(MultiValueMap<String, String>
the values to be added values)Overrides org. Implements org. MultiValueMap to the current values.
|
| public void | clear()
Overrides org. Implements java. |
| public void | clearContentHeaders()
Overrides org. "Content-*" HTTP headers.
|
| public Set | entrySet()
Overrides org. Implements java. Set view of the mappings contained in this map.
|
| public void | forEach(BiConsumer<? super String, ? super List<String>>
The action to be performed for each entry action)Overrides org. Overrides default java. |
| public List | get(Object
the key whose associated value is to be returned key)Overrides org. Implements java. null if this map contains no mapping for the key.
|
| public List | getAccept()
Overrides org. Accept header.
|
| public MediaType | getContentType()
Overrides org. Content-Type header.
|
| public Set | keySet()
Overrides org. Implements java. Set view of the keys contained in this map.
|
| 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)Overrides org. Implements java. |
| public void | putAll(Map<? extends String, ? extends List<String>>
mappings to be stored in this map map)Overrides org. Implements java. |
| public List | remove(Object
key whose mapping is to be removed from the map key)Overrides org. Implements java. |
| public void | set(String
the header name headerName, String the header value headerValue)Overrides org. Implements org. |
| public void | setAll(Map<String, String>
the values. values)Overrides org. Implements org. |
| public Map | toSingleValueMap()
Overrides org. Implements org. Map with the first values contained in this MultiValueMap.
|
| public Collection | values()
Overrides org. Implements java. Collection view of the values contained in this map.
|
| cachedAccept | back to summary |
|---|---|
private List<MediaType> cachedAccept
| |
| cachedContentType | back to summary |
|---|---|
| private MediaType cachedContentType
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| ReadOnlyHttpHeaders | back to summary |
|---|---|
| pack-priv ReadOnlyHttpHeaders(MultiValueMap<String, String> headers) | |
| add | back to summary |
|---|---|
| public void add(String headerName, String headerValue) Overrides org. Implements org. Doc from org. Add the given, single header value under the given name. | |
| addAll | back to summary |
|---|---|
| public void addAll(String key, List<? extends String> values) Overrides org. 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) Overrides org. Implements org. Doc from org. Add all the values of the given
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides org. Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| clearContentHeaders | back to summary |
|---|---|
| public void clearContentHeaders() Overrides org. Doc from org. Remove the well-known Such headers should be cleared from the response if the intended body can't be written due to errors.
| |
| entrySet | back to summary |
|---|---|
| public Set Overrides org. Implements java. Doc from java. Returns a | |
| forEach | back to summary |
|---|---|
| public void forEach(BiConsumer<? super String, ? super List<String>> action) Overrides org. Overrides default java. Doc from java. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. Unless otherwise specified by the implementing class, actions are performed in the order of entry set iteration (if an iteration order is specified.) Exceptions thrown by the action are relayed to the caller.
| |
| get | back to summary |
|---|---|
| public List Overrides org. 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
| |
| getAccept | back to summary |
|---|---|
| public List Overrides org. Doc from org. Return the list of acceptable media types,
as specified by the Returns an empty list when the acceptable media types are unspecified.
| |
| getContentType | back to summary |
|---|---|
| public MediaType getContentType() Overrides org. Doc from org. Return the media type of the body, as specified
by the Returns
| |
| keySet | back to summary |
|---|---|
| public Set Overrides org. Implements java. Doc from java. Returns a | |
| put | back to summary |
|---|---|
| public List Overrides org. 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) Overrides org. 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 Overrides org. 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 headerName, String headerValue) Overrides org. Implements org. Doc from org. Set the given, single header value under the given name. | |
| setAll | back to summary |
|---|---|
| public void setAll(Map<String, String> values) Overrides org. Implements org. Doc from org. Set the given values under. | |
| toSingleValueMap | back to summary |
|---|---|
| public Map Overrides org. Implements org. Doc from org. Return a | |
| values | back to summary |
|---|---|
| public Collection Overrides org. Implements java. Doc from java. Returns a
| |