Package com.restfb.batch
Klasse BatchResponse
java.lang.Object
com.restfb.batch.BatchResponse
Encapsulates a discrete part of an entire
Facebook Batch API response.
- Seit:
- 1.6.5
- Autor:
- Mark Allen
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
"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. -
Methodenübersicht
-
Konstruktordetails
-
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.- Parameter:
code
- HTTP status code.headers
- HTTP headers.body
- JSON body.
-
-
Methodendetails
-
hashCode
-
equals
-
toString
-
getCode
The HTTP status code for this response.- Gibt zurück:
- The HTTP status code for this response.
-
getBody
The HTTP response body JSON.- Gibt zurück:
- The HTTP response body JSON.
-
getHeaders
The HTTP response headers.- Gibt zurück:
- The HTTP response headers.
-