smartrics.rest.client
Class RestResponse
java.lang.Object
smartrics.rest.client.RestData
smartrics.rest.client.RestResponse
public class RestResponse
- extends RestData
Wraps a REST response object
| Methods inherited from class smartrics.rest.client.RestData |
addHeader, addHeaders, addHeaders, getBody, getCharset, getContentLength, getContentType, getHeader, getHeaders, getHeaderValue, getRawBody, getResource, getTransactionId, setBody, setRawBody, setResource, setTransactionId |
RestResponse
public RestResponse()
getStatusCode
public Integer getStatusCode()
- Returns:
- the status code of this response
setStatusCode
public RestResponse setStatusCode(Integer sCode)
- Parameters:
sCode - the status code for this response
- Returns:
- this response
getStatusText
public String getStatusText()
- Returns:
- the status text for this response
setStatusText
public RestResponse setStatusText(String st)
- Parameters:
st - the status text for this response
- Returns:
- this response
toString
public String toString()
- Description copied from class:
RestData
- A visually easy to read representation of this
RestData.
It tryes to match the typical Http Request/Response
- Overrides:
toString in class RestData
- Returns:
- string representation of this response
Copyright © 2012 smartrics. All Rights Reserved.