public class RawMessage
extends java.lang.Object
Constructor and Description |
---|
RawMessage(byte[] rawBytes)
Instantiates a RawMessage object to dispatch to a channel.
|
RawMessage(byte[] rawBytes,
java.util.Collection<java.lang.Number> destinationMetaDataIds)
Instantiates a RawMessage object to dispatch to a channel.
|
RawMessage(byte[] rawBytes,
java.util.Collection<java.lang.Number> destinationMetaDataIds,
java.util.Map<java.lang.String,java.lang.Object> sourceMap)
Instantiates a RawMessage object to dispatch to a channel.
|
RawMessage(java.lang.String rawData)
Instantiates a RawMessage object to dispatch to a channel.
|
RawMessage(java.lang.String rawData,
java.util.Collection<java.lang.Number> destinationMetaDataIds)
Instantiates a RawMessage object to dispatch to a channel.
|
RawMessage(java.lang.String rawData,
java.util.Collection<java.lang.Number> destinationMetaDataIds,
java.util.Map<java.lang.String,java.lang.Object> sourceMap)
Instantiates a RawMessage object to dispatch to a channel.
|
Modifier and Type | Method and Description |
---|---|
void |
clearMessage()
Removes references to any data (textual or binary) currently stored by the raw message.
|
java.util.Map<java.lang.String,java.lang.Object> |
getChannelMap()
Deprecated.
This method is deprecated and will soon be removed. Please use
getSourceMap() instead. |
java.util.Collection<java.lang.Integer> |
getDestinationMetaDataIds()
Returns the collection of integers (metadata IDs) representing which destinations to dispatch
the message to.
|
byte[] |
getRawBytes()
Returns the binary data (byte array) to be dispatched to a channel.
|
java.lang.String |
getRawData()
Returns the textual data to be dispatched to a channel.
|
java.util.Map<java.lang.String,java.lang.Object> |
getSourceMap()
Returns the source map to be used at the beginning of the channel dispatch.
|
java.lang.Boolean |
isBinary()
Returns a Boolean representing whether this object contains textual or binary data.
|
void |
setChannelMap(java.util.Map<java.lang.String,java.lang.Object> channelMap)
Deprecated.
This method is deprecated and will soon be removed. Please use
setSourceMap(sourceMap) instead. |
void |
setDestinationMetaDataIds(java.util.Collection<java.lang.Number> destinationMetaDataIds)
Sets which destinations to dispatch the message to.
|
void |
setSourceMap(java.util.Map<java.lang.String,java.lang.Object> sourceMap)
Sets the source map to be used at the beginning of the channel dispatch.
|
public RawMessage(java.lang.String rawData)
rawData
- The textual data to dispatch to the channel.public RawMessage(java.lang.String rawData, java.util.Collection<java.lang.Number> destinationMetaDataIds)
rawData
- The textual data to dispatch to the channel.destinationMetaDataIds
- A collection of integers (metadata IDs) representing which destinations to
dispatch the message to. JavaScript arrays can be used.public RawMessage(java.lang.String rawData, java.util.Collection<java.lang.Number> destinationMetaDataIds, java.util.Map<java.lang.String,java.lang.Object> sourceMap)
rawData
- The textual data to dispatch to the channel.destinationMetaDataIds
- A collection of integers (metadata IDs) representing which destinations to
dispatch the message to. JavaScript arrays can be used.sourceMap
- Any values placed in this map will be populated in the source map at the beginning
of the message's lifecycle.public RawMessage(byte[] rawBytes)
rawBytes
- The binary data (byte array) to dispatch to the channel.public RawMessage(byte[] rawBytes, java.util.Collection<java.lang.Number> destinationMetaDataIds)
rawBytes
- The binary data (byte array) to dispatch to the channel.destinationMetaDataIds
- A collection of integers (metadata IDs) representing which destinations to
dispatch the message to. JavaScript arrays can be used.public RawMessage(byte[] rawBytes, java.util.Collection<java.lang.Number> destinationMetaDataIds, java.util.Map<java.lang.String,java.lang.Object> sourceMap)
rawBytes
- The binary data (byte array) to dispatch to the channel.destinationMetaDataIds
- A collection of integers (metadata IDs) representing which destinations to
dispatch the message to. JavaScript arrays can be used.sourceMap
- Any values placed in this map will be populated in the source map at the beginning
of the message's lifecycle.public java.lang.String getRawData()
public byte[] getRawBytes()
public java.util.Collection<java.lang.Integer> getDestinationMetaDataIds()
public void setDestinationMetaDataIds(java.util.Collection<java.lang.Number> destinationMetaDataIds)
destinationMetaDataIds
- A list of integers (metadata IDs) representing which destinations to dispatch the
message to.public java.util.Map<java.lang.String,java.lang.Object> getChannelMap()
getSourceMap()
instead.public void setChannelMap(java.util.Map<java.lang.String,java.lang.Object> channelMap)
setSourceMap(sourceMap)
instead.channelMap
- Any values placed in this map will be populated in the channel map at the
beginning of the message's lifecycle.public java.util.Map<java.lang.String,java.lang.Object> getSourceMap()
public void setSourceMap(java.util.Map<java.lang.String,java.lang.Object> sourceMap)
sourceMap
- Any values placed in this map will be populated in the source map at the beginning
of the message's lifecycle.public java.lang.Boolean isBinary()
public void clearMessage()