public final class RetrievedMessage
extends java.lang.Object
| Constructor and Description |
|---|
RetrievedMessage() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinaryPayload()
Returns this message binary content.
|
java.lang.String |
getFileName()
Returns this message file name.
|
java.lang.String |
getPrettyPayload()
Returns a pretty print version of this message string (xml) content.
|
ch.iec.tc57._2011.schema.message.ResponseMessage |
getResponseMessage()
Returns the response message (whole reply from the get operation).
|
java.lang.String |
getStringPayload()
Returns this message string (xml) content.
|
boolean |
isBinary()
Returns whether the message is binary.
|
void |
setMessage(ch.iec.tc57._2011.schema.message.ResponseMessage response)
Sets this class payload or binary values from a ResponseMessage object.
|
void |
setMsgIdentification(java.lang.String messageIdentification)
Sets this message identification in order to create a proper file name identification.
|
void |
setMsgVersion(java.lang.String messageVersion)
Sets this message version in order to create a proper file name identification.
|
public boolean isBinary()
true for binary messages.public java.lang.String getFileName()
null if the QUEUE method was used and the returned
message has no ID value.public void setMsgIdentification(java.lang.String messageIdentification)
messageIdentification - Get filter's message identification.public void setMsgVersion(java.lang.String messageVersion)
setMsgIdentification(String) only if the version applies.messageVersion - Get filter's message version.public byte[] getBinaryPayload()
null if there is no binary content.public java.lang.String getStringPayload()
null if there is no payload.public java.lang.String getPrettyPayload()
null if there is no string payload.public ch.iec.tc57._2011.schema.message.ResponseMessage getResponseMessage()
public void setMessage(ch.iec.tc57._2011.schema.message.ResponseMessage response)
throws es.ree.eemws.core.utils.operations.get.GetOperationException
response - ResponseMessage object with payload or binary values.es.ree.eemws.core.utils.operations.get.GetOperationException - If the BINARY response has an invalid format or if it cannot be unzipped.