public class ImmutableMessage extends Object
Constructor and Description |
---|
ImmutableMessage(com.mirth.connect.donkey.model.message.Message message)
Instantiates a new ImmutableMessage object.
|
Modifier and Type | Method and Description |
---|---|
List<ImmutableAttachment> |
getAttachments()
Returns a list of attachments associated with this message.
|
String |
getChannelId()
Returns the ID of the channel associated with this message.
|
Map<Integer,ImmutableConnectorMessage> |
getConnectorMessages()
Returns a map of connector messages associated with this message.
|
Map<String,Integer> |
getDestinationIdMap()
Returns a Map of destination connector names linked to their corresponding connector metadata
ID.
|
Map<String,String> |
getDestinationNameMap()
Deprecated.
This method is deprecated and will soon be removed. Please use
getDestinationIdMap() instead. |
String |
getImportChannelId()
Returns the ID of the original channel this message was reprocessed from.
|
Long |
getImportId()
Returns the ID of the original message this one was imported from.
|
ImmutableConnectorMessage |
getMergedConnectorMessage()
Returns a "merged" connector message containing data from all connector messages combined.
|
Long |
getMessageId()
Returns the sequential ID of this message, as a Long.
|
Long |
getOriginalId()
Returns the ID of the original message this one was reprocessed from.
|
Calendar |
getReceivedDate()
Deprecated.
This method is deprecated and will soon be removed. This method currently returns
the received date of the source connector message.
|
String |
getServerId()
Returns the ID of the server associated with this message.
|
boolean |
isProcessed()
Returns whether this message has finished processing through a channel.
|
String |
toString()
Returns a string representation of the object.
|
public ImmutableMessage(com.mirth.connect.donkey.model.message.Message message)
message
- The Message object that this object will reference for retrieving data.public Long getMessageId()
public String getServerId()
public String getChannelId()
@Deprecated public Calendar getReceivedDate()
public boolean isProcessed()
public Long getOriginalId()
public Long getImportId()
public String getImportChannelId()
public List<ImmutableAttachment> getAttachments()
public Map<Integer,ImmutableConnectorMessage> getConnectorMessages()
public ImmutableConnectorMessage getMergedConnectorMessage()
@Deprecated public Map<String,String> getDestinationNameMap()
getDestinationIdMap()
instead.public Map<String,Integer> getDestinationIdMap()
public String toString()
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())