public class ImmutableConnectorMessage extends Object
Constructor and Description |
---|
ImmutableConnectorMessage(com.mirth.connect.donkey.model.message.ConnectorMessage connectorMessage)
Instantiates a new ImmutableConnectorMessage object.
|
ImmutableConnectorMessage(com.mirth.connect.donkey.model.message.ConnectorMessage connectorMessage,
boolean modifiableMaps)
Instantiates a new ImmutableConnectorMessage object.
|
ImmutableConnectorMessage(com.mirth.connect.donkey.model.message.ConnectorMessage connectorMessage,
boolean modifiableMaps,
Map<String,Integer> destinationIdMap)
Instantiates a new ImmutableConnectorMessage object.
|
Modifier and Type | Method and Description |
---|---|
String |
getChannelId()
Returns the ID of the channel associated with this connector message.
|
Map<String,Object> |
getChannelMap()
Returns the channel map.
|
String |
getChannelName()
Returns the Name of the channel associated with this connector message.
|
Map<String,Object> |
getConnectorMap()
Returns the connector map.
|
String |
getConnectorName()
Returns the name of the connector associated with this connector message.
|
ImmutableMessageContent |
getContent(ContentType contentType)
Deprecated.
The getContent(contentType) method has been deprecated and will soon be removed.
Please use getMessageContent(contentType) instead.
|
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. |
ImmutableMessageContent |
getEncoded()
Retrieves encoded content associated with this connector message.
|
String |
getEncodedData()
Retrieves encoded content associated with this connector message.
|
ImmutableMessageContent |
getMessageContent(ContentType contentType)
Retrieves content associated with this connector message.
|
long |
getMessageId()
Returns the sequential ID of the overall Message associated with this connector message.
|
int |
getMetaDataId()
Returns the metadata ID of this connector message.
|
String |
getPostProcessorError()
Returns the postprocessing error string associated with this connector message, if it exists.
|
ImmutableMessageContent |
getProcessedRaw()
Retrieves processed raw content associated with this connector message.
|
String |
getProcessedRawData()
Retrieves processed raw content associated with this connector message.
|
ImmutableMessageContent |
getProcessedResponse()
Retrieves processed response content associated with this connector message.
|
Response |
getProcessedResponseData()
Retrieves processed response content associated with this connector message.
|
String |
getProcessingError()
Returns the processing error string associated with this connector message, if it exists.
|
ImmutableMessageContent |
getRaw()
Retrieves raw content associated with this connector message.
|
String |
getRawData()
Retrieves raw content associated with this connector message.
|
Calendar |
getReceivedDate()
Returns the date/time that this connector message was created by the channel.
|
ImmutableMessageContent |
getResponse()
Retrieves response content associated with this connector message.
|
Response |
getResponseData()
Retrieves response content associated with this connector message.
|
Calendar |
getResponseDate()
Returns the date/time immediately after this connector message's response is received.
|
String |
getResponseError()
Returns the response error string associated with this connector message, if it exists.
|
Map<String,Object> |
getResponseMap()
Returns the response map.
|
ImmutableMessageContent |
getResponseTransformed()
Retrieves transformed response content associated with this connector message.
|
String |
getResponseTransformedData()
Retrieves transformed response content associated with this connector message.
|
int |
getSendAttempts()
Returns the number of times this message has been attempted to be dispatched by the
connector.
|
Calendar |
getSendDate()
Returns the date/time immediately before this connector message's most recent send attempt.
|
String |
getServerId()
Returns the ID of the server associated with this connector message.
|
Map<String,Object> |
getSourceMap()
Returns the source map.
|
Status |
getStatus()
Returns the status (e.g.
|
ImmutableMessageContent |
getTransformed()
Retrieves transformed content associated with this connector message.
|
String |
getTransformedData()
Retrieves transformed content associated with this connector message.
|
String |
toString()
Returns a string representation of the object.
|
public ImmutableConnectorMessage(com.mirth.connect.donkey.model.message.ConnectorMessage connectorMessage)
connectorMessage
- The connector message that this object will reference for retrieving data.public ImmutableConnectorMessage(com.mirth.connect.donkey.model.message.ConnectorMessage connectorMessage, boolean modifiableMaps)
connectorMessage
- The connector message that this object will reference for retrieving data.modifiableMaps
- If true, variable maps (e.g. connector/channel/response) will be modifiable, and
values may be set in them as well as retrieved. Otherwise, data will only be able
to be retrieved from the maps, and no updates will be allowed.public ImmutableConnectorMessage(com.mirth.connect.donkey.model.message.ConnectorMessage connectorMessage, boolean modifiableMaps, Map<String,Integer> destinationIdMap)
connectorMessage
- The connector message that this object will reference for retrieving data.modifiableMaps
- If true, variable maps (e.g. connector/channel/response) will be modifiable, and
values may be set in them as well as retrieved. Otherwise, data will only be able
to be retrieved from the maps, and no updates will be allowed.destinationIdMap
- A map containing all applicable destination names in the channel and their
corresponding connector metadata ids.public int getMetaDataId()
public String getChannelId()
public String getChannelName()
public String getConnectorName()
public String getServerId()
public Calendar getReceivedDate()
public int getSendAttempts()
public Calendar getSendDate()
public Calendar getResponseDate()
public Status getStatus()
public ImmutableMessageContent getMessageContent(ContentType contentType)
contentType
- The ContentType (e.g. RAW, ENCODED) of the content to retrieve.@Deprecated public ImmutableMessageContent getContent(ContentType contentType)
contentType
- The ContentType (e.g. RAW, ENCODED) of the content to retrieve.public ImmutableMessageContent getRaw()
public String getRawData()
public ImmutableMessageContent getProcessedRaw()
public String getProcessedRawData()
public ImmutableMessageContent getTransformed()
public String getTransformedData()
public ImmutableMessageContent getEncoded()
public String getEncodedData()
public ImmutableMessageContent getResponse()
public Response getResponseData()
public ImmutableMessageContent getResponseTransformed()
public String getResponseTransformedData()
public ImmutableMessageContent getProcessedResponse()
public Response getProcessedResponseData()
public long getMessageId()
public Map<String,Object> getSourceMap()
public Map<String,Object> getConnectorMap()
public Map<String,Object> getChannelMap()
public Map<String,Object> getResponseMap()
public String getPostProcessorError()
public String getProcessingError()
public String getResponseError()
@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())