org.springframework.http.HttpHeaders variant that adds support for
the HTTP headers defined by the WebSocket specification RFC 6455.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeaders | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | WebSocketHttpHeaders(HttpHeaders
the HTTP headers to wrap headers)Create an instance that wraps the given pre-existing HttpHeaders and also propagate all changes to it. |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(String
the header name headerName, String the header value headerValue)Overrides org. Implements org. Add the given, single header value under the given name. |
| public void | clear()
Overrides org. 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)Overrides org. Implements java. Returns |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Overrides org. Implements java. Returns |
| public Set | entrySet()
Overrides org. Implements java. Returns a |
| public boolean | equals(Object
object to be compared for equality with this map other)Overrides org. Implements java. Compares the specified object with this map for equality. |
| public void | forEach(BiConsumer<? super String, ? super List<String>>
The action to be performed for each entry action)Overrides org. Overrides default java. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| public List | get(Object
the key whose associated value is to be returned key)Overrides org. Implements java. Returns the value to which the specified key is mapped,
or |
| public String | Returns: the first header value; ornullthe header name headerName)Overrides org. Implements org. Return the first header value for the given header name, if any. |
| public String | Returns: the value of the headerReturns the value of the |
| public List | Returns: the value of the headerReturns the value of the |
| public String | Returns: the value of the headerReturns the value of the |
| public List | Returns: the value of the headerReturns the value of the |
| public String | Returns: the value of the headerReturns the value of the |
| public int | hashCode()
Overrides org. Implements java. Returns the hash code value for this map. |
| public boolean | isEmpty()
Overrides org. Implements java. Returns |
| public Set | keySet()
Overrides org. Implements java. Returns a |
| 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. Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(Map<? extends String, ? extends List<String>>
mappings to be stored in this map m)Overrides org. Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public List | putIfAbsent(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. Overrides default java. If the specified key is not already associated with a value (or is mapped
to |
| public List | remove(Object
key whose mapping is to be removed from the map key)Overrides org. Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public void | set(String
the header name headerName, String the header value headerValue)Overrides org. Implements org. Set the given, single header value under the given name. |
| public void | setAll(Map<String, String>
the values. values)Overrides org. Implements org. Set the given values under. |
| public void | setSecWebSocketAccept(String
the value of the header secWebSocketAccept)Sets the (new) value of the |
| public void | setSecWebSocketExtensions(List<WebSocketExtension>
the values for the header extensions)Sets the (new) value(s) of the |
| public void | setSecWebSocketKey(String
the value of the header secWebSocketKey)Sets the (new) value of the |
| public void | setSecWebSocketProtocol(String
the value of the header secWebSocketProtocol)Sets the (new) value of the |
| public void | setSecWebSocketProtocol(List<String>
the value of the header secWebSocketProtocols)Sets the (new) value of the |
| public void | setSecWebSocketVersion(String
the value of the header secWebSocketVersion)Sets the (new) value of the |
| public int | size()
Overrides org. Implements java. Returns the number of key-value mappings in this map. |
| public Map | toSingleValueMap()
Overrides org. Implements org. Return a |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public Collection | values()
Overrides org. Implements java. Returns a |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| SEC_WEBSOCKET_ACCEPT | back to summary |
|---|---|
| public static final String SEC_WEBSOCKET_ACCEPT | |
| SEC_WEBSOCKET_EXTENSIONS | back to summary |
|---|---|
| public static final String SEC_WEBSOCKET_EXTENSIONS | |
| SEC_WEBSOCKET_KEY | back to summary |
|---|---|
| public static final String SEC_WEBSOCKET_KEY | |
| SEC_WEBSOCKET_PROTOCOL | back to summary |
|---|---|
| public static final String SEC_WEBSOCKET_PROTOCOL | |
| SEC_WEBSOCKET_VERSION | back to summary |
|---|---|
| public static final String SEC_WEBSOCKET_VERSION | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| WebSocketHttpHeaders | back to summary |
|---|---|
| public WebSocketHttpHeaders() Create a new instance. | |
| WebSocketHttpHeaders | back to summary |
|---|---|
| public WebSocketHttpHeaders(HttpHeaders headers) Create an instance that wraps the given pre-existing HttpHeaders and also propagate all changes to it.
| |
| add | back to summary |
|---|---|
| public void add(String headerName, String headerValue) Overrides org. Implements org. Add the given, single header value under the given name.
| |
| 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.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Overrides org. Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Overrides org. Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Overrides org. Implements java. Doc from java. Returns a | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Implements java. Doc from java. Compares the specified object with this map for equality. Returns
| |
| 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
| |
| getFirst | back to summary |
|---|---|
| public String getFirst(String headerName) Overrides org. Implements org. Return the first header value for the given header name, if any. | |
| getSecWebSocketAccept | back to summary |
|---|---|
| public String getSecWebSocketAccept() Returns the value of the | |
| getSecWebSocketExtensions | back to summary |
|---|---|
| public List Returns the value of the
| |
| getSecWebSocketKey | back to summary |
|---|---|
| public String getSecWebSocketKey() Returns the value of the | |
| getSecWebSocketProtocol | back to summary |
|---|---|
| public List Returns the value of the | |
| getSecWebSocketVersion | back to summary |
|---|---|
| public String getSecWebSocketVersion() Returns the value of the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Implements java. Doc from java. Returns the hash code value for this map. The hash code of a map is
defined to be the sum of the hash codes of each entry in the map's
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides org. Implements java. Doc from java. 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>> m) 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 | |
| putIfAbsent | back to summary |
|---|---|
| public List Overrides org. Overrides default java. Doc from java. If the specified key is not already associated with a value (or is mapped
to | |
| 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. 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. | |
| setSecWebSocketAccept | back to summary |
|---|---|
| public void setSecWebSocketAccept(String secWebSocketAccept) Sets the (new) value of the
| |
| setSecWebSocketExtensions | back to summary |
|---|---|
| public void setSecWebSocketExtensions(List<WebSocketExtension> extensions) Sets the (new) value(s) of the
| |
| setSecWebSocketKey | back to summary |
|---|---|
| public void setSecWebSocketKey(String secWebSocketKey) Sets the (new) value of the
| |
| setSecWebSocketProtocol | back to summary |
|---|---|
| public void setSecWebSocketProtocol(String secWebSocketProtocol) Sets the (new) value of the
| |
| setSecWebSocketProtocol | back to summary |
|---|---|
| public void setSecWebSocketProtocol(List<String> secWebSocketProtocols) Sets the (new) value of the | |
| setSecWebSocketVersion | back to summary |
|---|---|
| public void setSecWebSocketVersion(String secWebSocketVersion) Sets the (new) value of the
| |
| size | back to summary |
|---|---|
| public int size() Overrides org. 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 Overrides org. Implements org. Doc from org. Return a | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| values | back to summary |
|---|---|
| public Collection Overrides org. Implements java. Doc from java. Returns a
| |