|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mirth.connect.userutil.Response
public class Response
This class represents a channel or destination response and is used to retrieve details such as the response data, message status, and errors.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |