Package com.restfb.batch
Class BatchResponse
java.lang.Object
com.restfb.batch.BatchResponse
Encapsulates a discrete part of an entire
Facebook Batch API response.
- Since:
- 1.6.5
- Author:
- Mark Allen
-
Constructor Summary
ModifierConstructorDescriptionprotected
"Magic" no-argument constructor so we can reflectively make instances of this class with DefaultJsonMapper, but normal client code cannot.BatchResponse
(Integer code, List<BatchHeader> headers, String body) Creates a batch response with the given HTTP response status code, headers, and JSON body. -
Method Summary
-
Constructor Details
-
BatchResponse
protected BatchResponse()"Magic" no-argument constructor so we can reflectively make instances of this class with DefaultJsonMapper, but normal client code cannot. -
BatchResponse
Creates a batch response with the given HTTP response status code, headers, and JSON body.- Parameters:
code
- HTTP status code.headers
- HTTP headers.body
- JSON body.
-
-
Method Details
-
hashCode
-
equals
-
toString
-
getCode
The HTTP status code for this response.- Returns:
- The HTTP status code for this response.
-
getBody
The HTTP response body JSON.- Returns:
- The HTTP response body JSON.
-
getHeaders
The HTTP response headers.- Returns:
- The HTTP response headers.
-