public class ImmutableResponse extends Object
Constructor and Description |
---|
ImmutableResponse(Response response)
Instantiates a new ImmutableResponse object.
|
Modifier and Type | Method and Description |
---|---|
String |
getError()
Returns the error string associated with this response, if it exists.
|
String |
getMessage()
Returns the actual response data, as a string.
|
Status |
getNewMessageStatus()
Returns the Status (e.g.
|
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 String getMessage()
public Status getNewMessageStatus()
public String getError()
public String getStatusMessage()