com.mirth.connect.userutil
Class ImmutableMessageContent

java.lang.Object
  extended by com.mirth.connect.userutil.ImmutableMessageContent

public class ImmutableMessageContent
extends java.lang.Object

This class represents content associated with a connector message.


Constructor Summary
ImmutableMessageContent(com.mirth.connect.donkey.model.message.MessageContent messageContent)
          Instantiates a new ImmutableMessageContent object.
 
Method Summary
 java.lang.String getContent()
          Returns the actual content, as a string.
 ContentType getContentType()
          Returns the ContentType of this message content (e.g.
 java.lang.String getDataType()
          Returns the data type (e.g.
 long getMessageId()
          Returns the sequential ID of the overall Message associated with this message content.
 int getMetaDataId()
          Returns the metadata ID of the connector associated with this message content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

getContentType

public ContentType getContentType()
Returns the ContentType of this message content (e.g. RAW, ENCODED).


getContent

public java.lang.String getContent()
Returns the actual content, as a string.


getMessageId

public long getMessageId()
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.


getDataType

public java.lang.String getDataType()
Returns the data type (e.g. "HL7V2") of this message content.