- byKey
InputRange!string byKey()
Undocumented in source. Be warned that the author may not have intended to support it.
- byValue
InputRange!Object byValue()
Undocumented in source. Be warned that the author may not have intended to support it.
- clear
void clear()
Since MessageHeaders are immutable, the call to this method
will result in {@link UnsupportedOperationException}.
- containsKey
bool containsKey(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
- containsValue
bool containsValue(Object value)
Undocumented in source. Be warned that the author may not have intended to support it.
- get
Object get(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
- getAs
T getAs(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
- getErrorChannel
Object getErrorChannel()
Undocumented in source. Be warned that the author may not have intended to support it.
- getId
UUID getId()
Undocumented in source. Be warned that the author may not have intended to support it.
- getRawHeaders
Map!(string, Object) getRawHeaders()
Undocumented in source. Be warned that the author may not have intended to support it.
- getReplyChannel
Object getReplyChannel()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTimestamp
Long getTimestamp()
Undocumented in source. Be warned that the author may not have intended to support it.
- isEmpty
bool isEmpty()
Undocumented in source. Be warned that the author may not have intended to support it.
- opApply
int opApply(int delegate(ref string, ref Object) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
- opApply
int opApply(int delegate(MapEntry!(string, Object) entry) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Object other)
Undocumented in source. Be warned that the author may not have intended to support it.
- put
Object put(string key, Object value)
Since MessageHeaders are immutable, the call to this method
will result in {@link UnsupportedOperationException}.
- putAll
void putAll(Map!(string, Object) map)
Since MessageHeaders are immutable, the call to this method
will result in {@link UnsupportedOperationException}.
- remove
Object remove(string key)
Since MessageHeaders are immutable, the call to this method
will result in {@link UnsupportedOperationException}.
- size
int size()
Undocumented in source. Be warned that the author may not have intended to support it.
- toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
- toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
The headers for a {@link Message}.
<p><b>IMPORTANT</b>: This class is immutable. Any mutating operation such as {@code put(..)}, {@code putAll(..)} and others will throw {@link UnsupportedOperationException}. <p>Subclasses do have access to the raw headers, however, via {@link #getRawHeaders()}.
<p>One way to create message headers is to use the {@link hunt.stomp.support.MessageBuilder MessageBuilder}: <pre class="code"> MessageBuilder.withPayload("foo").setHeader("key1", "value1").setHeader("key2", "value2"); </pre>
A second option is to create {@link hunt.stomp.support.GenericMessage} passing a payload as {@link Object} and headers as a {@link Map java.util.Map}: <pre class="code"> Map headers = new HashMap(); headers.put("key1", "value1"); headers.put("key2", "value2"); new GenericMessage("foo", headers); </pre>
A third option is to use {@link hunt.stomp.support.MessageHeaderAccessor} or one of its subclasses to create specific categories of headers.
@author Arjen Poutsma @author Mark Fisher @author Gary Russell @author Juergen Hoeller @since 4.0 @see hunt.stomp.support.MessageBuilder @see hunt.stomp.support.MessageHeaderAccessor