smartrics.rest.client
Class RestResponse

java.lang.Object
  extended by smartrics.rest.client.RestData
      extended by smartrics.rest.client.RestResponse

public class RestResponse
extends RestData

Wraps a REST response object


Nested Class Summary
 
Nested classes/interfaces inherited from class smartrics.rest.client.RestData
RestData.Header
 
Field Summary
 
Fields inherited from class smartrics.rest.client.RestData
DEFAULT_ENCODING, LINE_SEPARATOR
 
Constructor Summary
RestResponse()
           
 
Method Summary
 Integer getStatusCode()
           
 String getStatusText()
           
 RestResponse setStatusCode(Integer sCode)
           
 RestResponse setStatusText(String st)
           
 String toString()
          A visually easy to read representation of this RestData.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestResponse

public RestResponse()
Method Detail

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.