getMsg()
:
String
Returns an extra error message on failure (if any).
getObject()
:
Object
Returns the actual object returned by the service when the status is OK.
isMockResult()
:
boolean
Returns the status of whether the response is the result of a "mock" service call.
isOk()
:
boolean
Returns the status of whether the service call was successful.
getError
Returns an error-specific code if applicable. For example, this is the HTTP response code for an
HTTPService.
Returns:
Error-specific code (if applicable).
getErrorMessage
Returns an error message on a non-OK status.
getMsg
Returns an extra error message on failure (if any).
Returns:
Error message, or null.
getObject
Returns the actual object returned by the service when the status is OK.
Returns:
Object returned by the service.
getStatus
Returns the status. This is "OK" on success. Failure codes include "ERROR" and "SERVICE_UNAVAILABLE".
If the status is "SERVICE_UNAVAILABLE", then the unavailableReason is guaranteed to be non-null.
getUnavailableReason
getUnavailableReason()
:
String
Returns the reason the status is SERVICE_UNAVAILABLE.
Returns:
Unavailable reason code, or null if the status is not SERVICE_UNAVAILABLE.
isMockResult
isMockResult()
:
boolean
Returns the status of whether the response is the result of a "mock" service call.
Returns:
true if this was a mock service call, false otherwise.
isOk
isOk()
:
boolean
Returns the status of whether the service call was successful.
Returns:
true on success, false otherwise.
toString
Returns a string representation of the result.
Returns:
a string representation of the result.