Class ImmutableResponse
java.lang.Object
com.mirth.connect.server.userutil.ImmutableResponse
This class represents a destination response and is used to retrieve details such as the response
data, message status, and errors.
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableResponse(Response response) Instantiates a new ImmutableResponse object. -
Method Summary
Modifier and TypeMethodDescriptiongetError()Returns the error string associated with this response, if it exists.Returns the actual response data, as a string.Returns the Status (e.g.Returns a brief message explaining the reason for the current status.
-
Constructor Details
-
ImmutableResponse
Instantiates a new ImmutableResponse object.- Parameters:
response- The Response object that this object will reference for retrieving data.
-
-
Method Details
-
getMessage
Returns the actual response data, as a string.- Returns:
- The actual response data, as a string.
-
getNewMessageStatus
Returns the Status (e.g. SENT, QUEUED) of this response, which will be used to set the status of the corresponding connector message.- Returns:
- The Status (e.g. SENT, QUEUED) of this response.
-
getError
Returns the error string associated with this response, if it exists.- Returns:
- The error string associated with this response, if it exists.
-
getStatusMessage
Returns a brief message explaining the reason for the current status.- Returns:
- A brief message explaining the reason for the current status.
-