public class Response
extends java.lang.Object
Constructor and Description |
---|
Response()
Instantiates a new Response object.
|
Response(com.mirth.connect.donkey.model.message.Response response)
Instantiates a new Response object.
|
Response(Status status,
java.lang.String message)
Instantiates a new Response object.
|
Response(Status status,
java.lang.String message,
java.lang.String statusMessage)
Instantiates a new Response object.
|
Response(Status status,
java.lang.String message,
java.lang.String statusMessage,
java.lang.String error)
Instantiates a new Response object.
|
Response(java.lang.String message)
Instantiates a new Response object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Indicates that the underlying Donkey Response objects are "equal".
|
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 |
getStatus()
Returns the Status (e.g.
|
java.lang.String |
getStatusMessage()
Returns a brief message explaining the reason for the current status.
|
void |
setError(java.lang.String error)
Sets the error string to be associated with this response.
|
void |
setMessage(java.lang.String message)
Sets the response data.
|
void |
setStatus(Status status)
Sets the status of this response.
|
void |
setStatusMessage(java.lang.String statusMessage)
Sets the status message to use for this response.
|
java.lang.String |
toString() |
public Response()
public Response(java.lang.String message)
message
- The actual response data.public Response(Status status, java.lang.String message)
status
- The status (e.g. SENT, ERROR) of the response.message
- The actual response data.public Response(Status status, java.lang.String message, java.lang.String statusMessage)
status
- The status (e.g. SENT, ERROR) of the response.message
- The actual response data.statusMessage
- A brief message explaining the reason for the current status.public Response(Status status, java.lang.String message, java.lang.String statusMessage, java.lang.String error)
status
- The status (e.g. SENT, ERROR) of the response.message
- The actual response data.statusMessage
- A brief message explaining the reason for the current status.error
- The error string associated with this response, if applicable.public Response(com.mirth.connect.donkey.model.message.Response response)
response
- The underlying Donkey Response object to reference.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- The response data (String) to use.public Status getStatus()
public void setStatus(Status status)
status
- The status (e.g. SENT, QUEUED) to use for this response.public java.lang.String getError()
public void setError(java.lang.String error)
error
- The error string to use.public java.lang.String getStatusMessage()
public void setStatusMessage(java.lang.String statusMessage)
statusMessage
- A brief message explaining the reason for the current status.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object