Class ImmutableMessageContent

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

public class ImmutableMessageContent extends Object
This class represents content associated with a connector message.
  • 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

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

      public String 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

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