|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mirth.connect.server.userutil.RawMessage
public class RawMessage
This class represents a raw message as it is received by a channel, and is used to retrieve details such as the raw data or channel map.
| Constructor Summary | |
|---|---|
RawMessage(byte[] rawBytes)
Instantiates a RawMessage object to dispatch to a channel. |
|
RawMessage(byte[] rawBytes,
java.util.List<java.lang.Integer> destinationMetaDataIds)
Instantiates a RawMessage object to dispatch to a channel. |
|
RawMessage(byte[] rawBytes,
java.util.List<java.lang.Integer> destinationMetaDataIds,
java.util.Map<java.lang.String,java.lang.Object> channelMap)
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.List<java.lang.Integer> destinationMetaDataIds)
Instantiates a RawMessage object to dispatch to a channel. |
|
RawMessage(java.lang.String rawData,
java.util.List<java.lang.Integer> destinationMetaDataIds,
java.util.Map<java.lang.String,java.lang.Object> channelMap)
Instantiates a RawMessage object to dispatch to a channel. |
|
| Method Summary | |
|---|---|
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()
Returns the channel map to be used at the beginning of the channel dispatch. |
java.util.List<java.lang.Integer> |
getDestinationMetaDataIds()
Returns the list 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.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)
Sets the channel map to be used at the beginning of the channel dispatch. |
void |
setDestinationMetaDataIds(java.util.List<java.lang.Integer> destinationMetaDataIds)
Sets which destinations to dispatch the message to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawMessage(java.lang.String rawData)
rawData - The textual data to dispatch to the channel.
public RawMessage(java.lang.String rawData,
java.util.List<java.lang.Integer> destinationMetaDataIds)
rawData - The textual data to dispatch to the channel.destinationMetaDataIds - A list of integers (metadata IDs) representing which destinations to dispatch the
message to.
public RawMessage(java.lang.String rawData,
java.util.List<java.lang.Integer> destinationMetaDataIds,
java.util.Map<java.lang.String,java.lang.Object> channelMap)
rawData - The textual data to dispatch to the channel.destinationMetaDataIds - A list of integers (metadata IDs) representing which destinations to dispatch the
message to.channelMap - Any values placed in this map will be populated in the channel 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.List<java.lang.Integer> destinationMetaDataIds)
rawBytes - The binary data (byte array) to dispatch to the channel.destinationMetaDataIds - A list of integers (metadata IDs) representing which destinations to dispatch the
message to.
public RawMessage(byte[] rawBytes,
java.util.List<java.lang.Integer> destinationMetaDataIds,
java.util.Map<java.lang.String,java.lang.Object> channelMap)
rawBytes - The binary data (byte array) to dispatch to the channel.destinationMetaDataIds - A list of integers (metadata IDs) representing which destinations to dispatch the
message to.channelMap - Any values placed in this map will be populated in the channel map at the
beginning of the message's lifecycle.| Method Detail |
|---|
public java.lang.String getRawData()
public byte[] getRawBytes()
public java.util.List<java.lang.Integer> getDestinationMetaDataIds()
public void setDestinationMetaDataIds(java.util.List<java.lang.Integer> 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()
public void setChannelMap(java.util.Map<java.lang.String,java.lang.Object> channelMap)
channelMap - Any values placed in this map will be populated in the channel map at the
beginning of the message's lifecycle.public java.lang.Boolean isBinary()
public void clearMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||