Package com.mirth.connect.userutil
Class ImmutableMessageContent
java.lang.Object
com.mirth.connect.userutil.ImmutableMessageContent
This class represents content associated with a connector message.
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableMessageContent(com.mirth.connect.donkey.model.message.MessageContent messageContent) Instantiates a new ImmutableMessageContent object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the actual content, as a string.Returns the ContentType of this message content (e.g.Returns the data type (e.g.longReturns the sequential ID of the overall Message associated with this message content.intReturns the metadata ID of the connector associated with this message content.
-
Constructor Details
-
ImmutableMessageContent
public ImmutableMessageContent(com.mirth.connect.donkey.model.message.MessageContent messageContent) Instantiates a new ImmutableMessageContent object.- Parameters:
messageContent- The MessageContent object that this object will reference for retrieving data.
-
-
Method Details
-
getContentType
Returns the ContentType of this message content (e.g. RAW, ENCODED).- Returns:
- The ContentType of this message content (e.g. RAW, ENCODED).
-
getContent
Returns the actual content, as a string.- Returns:
- The actual content, as a string.
-
getMessageId
public long getMessageId()Returns the sequential ID of the overall Message associated with this message content.- Returns:
- The sequential ID of the overall Message associated with this message content.
-
getMetaDataId
public int getMetaDataId()Returns the metadata ID of the connector associated with this message content. Note that the source connector has a metadata ID of 0.- Returns:
- The metadata ID of the connector associated with this message content.
-
getDataType
Returns the data type (e.g. "HL7V2") of this message content.- Returns:
- The data type (e.g. "HL7V2") of this message content.
-