In addition to the normal methods defined by Map, this class offers
the following convenience methods:
getFirst(String) return the first value for a header nameadd(String, String) add to the list of values for a header nameset(String, String) set a header name to a single string value| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private final Map | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final long | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(String
the header name headerName, String the header value headerValue)Implements org. Add the given, single header value under the given name. |
| public void | addAll(String
they key headerName, List<? extends String> the values to be added headerValues)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 boolean | equals(Object
object to be compared for equality with this map other)Overrides java. Implements java. Compares the specified object with this map for equality. |
| 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[] | |
| public String | |
| public long | |
| public MimeType | |
| public String | |
| public String | Returns: the first header value, ornull if nonethe header name headerName)Implements org. Return the first header value for the given header name, if any. |
| public long[] | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this map. |
| public boolean | |
| 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. Associates the specified value with the specified key in this map (optional operation). |
| public void | |
| public static StompHeaders | readOnlyStompHeaders(Map<String, List<String>> headers)
Return a |
| 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 header name headerName, String the header value headerValue)Implements org. Set the given, single header value under the given name. |
| public void | |
| public void | |
| public void | setAll(Map<String, String>
the values. values)Implements org. Set the given values under. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public int | |
| public Map | toSingleValueMap()
Implements org. Return a |
| public String | |
| public Collection | values()
Implements java. Returns a |
| ACCEPT_VERSION | back to summary |
|---|---|
| public static final String ACCEPT_VERSION | |
| ACK | back to summary |
|---|---|
| public static final String ACK | |
| CONTENT_LENGTH | back to summary |
|---|---|
| public static final String CONTENT_LENGTH | |
| CONTENT_TYPE | back to summary |
|---|---|
| public static final String CONTENT_TYPE | |
| DESTINATION | back to summary |
|---|---|
| public static final String DESTINATION | |
| headers | back to summary |
|---|---|
private final Map<String, List<String>> headers
| |
| HEARTBEAT | back to summary |
|---|---|
| public static final String HEARTBEAT | |
| HOST | back to summary |
|---|---|
| public static final String HOST | |
| ID | back to summary |
|---|---|
| public static final String ID | |
| LOGIN | back to summary |
|---|---|
| public static final String LOGIN | |
| MESSAGE_ID | back to summary |
|---|---|
| public static final String MESSAGE_ID | |
| PASSCODE | back to summary |
|---|---|
| public static final String PASSCODE | |
| RECEIPT | back to summary |
|---|---|
| public static final String RECEIPT | |
| RECEIPT_ID | back to summary |
|---|---|
| public static final String RECEIPT_ID | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SERVER | back to summary |
|---|---|
| public static final String SERVER | |
| SESSION | back to summary |
|---|---|
| public static final String SESSION | |
| SUBSCRIPTION | back to summary |
|---|---|
| public static final String SUBSCRIPTION | |
| StompHeaders | back to summary |
|---|---|
| public StompHeaders() Create a new instance to be populated with new header values. | |
| StompHeaders | back to summary |
|---|---|
| private StompHeaders(Map<String, List<String>> headers, boolean readOnly) | |
| add | back to summary |
|---|---|
| public void add(String headerName, String headerValue) Implements org. Add the given, single header value under the given name.
| |
| addAll | back to summary |
|---|---|
| public void addAll(String headerName, List<? extends String> headerValues) 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 | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Implements java. Doc from java. Compares the specified object with this map for equality. Returns
| |
| 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
| |
| getAcceptVersion | back to summary |
|---|---|
| public String[] getAcceptVersion() Get the accept-version header.
| |
| getAck | back to summary |
|---|---|
| public String getAck() Get the ack header.
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Return the content-length header or -1 if unknown. | |
| getContentType | back to summary |
|---|---|
| public MimeType getContentType() Return the content-type header value.
| |
| getDestination | back to summary |
|---|---|
| public String getDestination() Get the destination header. Applies to the SEND, SUBSCRIBE, and MESSAGE frames.
| |
| getFirst | back to summary |
|---|---|
| public String getFirst(String headerName) Implements org. Return the first header value for the given header name, if any. | |
| getHeartbeat | back to summary |
|---|---|
| public long[] getHeartbeat() Get the heartbeat header.
| |
| getHost | back to summary |
|---|---|
| public String getHost() Get the host header.
| |
| getId | back to summary |
|---|---|
| public String getId() Get the id header.
| |
| getLogin | back to summary |
|---|---|
| public String getLogin() Get the login header.
| |
| getMessageId | back to summary |
|---|---|
| public String getMessageId() Get the message-id header.
| |
| getPasscode | back to summary |
|---|---|
| public String getPasscode() Get the passcode header.
| |
| getReceipt | back to summary |
|---|---|
| public String getReceipt() Get the receipt header.
| |
| getReceiptId | back to summary |
|---|---|
| public String getReceiptId() Get the receipt header.
| |
| getServer | back to summary |
|---|---|
| public String getServer() Get the server header. Applies to the CONNECTED frame.
| |
| getSession | back to summary |
|---|---|
| public String getSession() Get the session header.
| |
| getSubscription | back to summary |
|---|---|
| public String getSubscription() Get the subscription header.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. 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() Implements java. Doc from java. Returns
| |
| isHeartbeatEnabled | back to summary |
|---|---|
| public boolean isHeartbeatEnabled() Whether heartbeats are enabled. 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 | |
| readOnlyStompHeaders | back to summary |
|---|---|
| public static StompHeaders readOnlyStompHeaders(Map<String, List<String>> headers) Return a | |
| 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 headerName, String headerValue) Implements org. Set the given, single header value under the given name.
| |
| setAcceptVersion | back to summary |
|---|---|
| public void setAcceptVersion(String... acceptVersions) Set the accept-version header. Must be one of "1.1", "1.2", or both. Applies to the CONNECT frame.
| |
| setAck | back to summary |
|---|---|
| public void setAck(String ack) Set the ack header to one of "auto", "client", or "client-individual". Applies to the SUBSCRIBE and MESSAGE frames. | |
| setAll | back to summary |
|---|---|
| public void setAll(Map<String, String> values) Implements org. Doc from org. Set the given values under. | |
| setContentLength | back to summary |
|---|---|
| public void setContentLength(long contentLength) Set the content-length header. Applies to the SEND, MESSAGE, and ERROR frames. | |
| setContentType | back to summary |
|---|---|
| public void setContentType(MimeType mimeType) Set the content-type header. Applies to the SEND, MESSAGE, and ERROR frames. | |
| setDestination | back to summary |
|---|---|
| public void setDestination(String destination) Set the destination header. | |
| setHeartbeat | back to summary |
|---|---|
| public void setHeartbeat(long[] heartbeat) Set the heartbeat header. Applies to the CONNECT and CONNECTED frames. | |
| setHost | back to summary |
|---|---|
| public void setHost(String host) Set the host header. Applies to the CONNECT frame. | |
| setId | back to summary |
|---|---|
| public void setId(String id) Set the id header. Applies to the SUBSCR0BE, UNSUBSCRIBE, and ACK or NACK frames. | |
| setLogin | back to summary |
|---|---|
| public void setLogin(String login) Set the login header. Applies to the CONNECT frame. | |
| setMessageId | back to summary |
|---|---|
| public void setMessageId(String messageId) Set the message-id header. Applies to the MESSAGE frame. | |
| setPasscode | back to summary |
|---|---|
| public void setPasscode(String passcode) Set the passcode header. Applies to the CONNECT frame. | |
| setReceipt | back to summary |
|---|---|
| public void setReceipt(String receipt) Set the receipt header. Applies to any client frame other than CONNECT. | |
| setReceiptId | back to summary |
|---|---|
| public void setReceiptId(String receiptId) Set the receipt-id header. Applies to the RECEIPT frame. | |
| setServer | back to summary |
|---|---|
| public void setServer(String server) Set the server header. Applies to the CONNECTED frame. | |
| setSession | back to summary |
|---|---|
| public void setSession(String session) Set the session header. Applies to the CONNECTED frame. | |
| setSubscription | back to summary |
|---|---|
| public void setSubscription(String subscription) Set the login header. Applies to the MESSAGE frame. | |
| 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
| |