com.mirth.connect.server.userutil
Class ImmutableResponse

java.lang.Object
  extended by com.mirth.connect.server.userutil.ImmutableResponse

public class ImmutableResponse
extends java.lang.Object

This class represents a destination response and is used to retrieve details such as the response data, message status, and errors.


Constructor Summary
ImmutableResponse(Response response)
          Instantiates a new ImmutableResponse object.
 
Method Summary
 java.lang.String getError()
          Returns the error string associated with this response, if it exists.
 java.lang.String getMessage()
          Returns the actual response data, as a string.
 Status getNewMessageStatus()
          Returns the Status (e.g.
 java.lang.String getStatusMessage()
          Returns a brief message explaining the reason for the current status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableResponse

public ImmutableResponse(Response response)
Instantiates a new ImmutableResponse object.

Parameters:
response - The Response object that this object will reference for retrieving data.
Method Detail

getMessage

public java.lang.String getMessage()
Returns the actual response data, as a string.


getNewMessageStatus

public Status getNewMessageStatus()
Returns the Status (e.g. SENT, QUEUED) of this response, which will be used to set the status of the corresponding connector message.


getError

public java.lang.String getError()
Returns the error string associated with this response, if it exists.


getStatusMessage

public java.lang.String getStatusMessage()
Returns a brief message explaining the reason for the current status.