com.restfb
Class WebRequestor.Response

java.lang.Object
  extended by com.restfb.WebRequestor.Response
Enclosing interface:
WebRequestor

public static class WebRequestor.Response
extends Object

Encapsulates an HTTP response body and status code.

Author:
Mark Allen

Constructor Summary
WebRequestor.Response(Integer statusCode, String body)
          Creates a response with the given HTTP status code and response body as text.
 
Method Summary
 String getBody()
          Gets the HTTP response body as text.
 Integer getStatusCode()
          Gets the HTTP status code.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebRequestor.Response

public WebRequestor.Response(Integer statusCode,
                             String body)
Creates a response with the given HTTP status code and response body as text.

Parameters:
statusCode - The HTTP status code of the response.
body - The response body as text.
Method Detail

getStatusCode

public Integer getStatusCode()
Gets the HTTP status code.

Returns:
The HTTP status code.

getBody

public String getBody()
Gets the HTTP response body as text.

Returns:
The HTTP response body as text.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.