public class ImmutableResponse
extends java.lang.Object
Constructor and Description |
---|
ImmutableResponse(Response response)
Instantiates a new ImmutableResponse object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ImmutableResponse(Response response)
response
- The Response object that this object will reference for retrieving data.public java.lang.String getMessage()
public Status getNewMessageStatus()
public java.lang.String getError()
public java.lang.String getStatusMessage()