Package com.restfb
Class WebRequestor.Response
java.lang.Object
com.restfb.WebRequestor.Response
- Enclosing interface:
- WebRequestor
Encapsulates an HTTP response body and status code.
- Author:
- Mark Allen
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Response
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 Details
-
getStatusCode
Gets the HTTP status code.- Returns:
- The HTTP status code.
-
getBody
Gets the HTTP response body as text.- Returns:
- The HTTP response body as text.
-
toString
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-