|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.restfb.batch.BatchResponse
public class BatchResponse
Encapsulates a discrete part of an entire Facebook Batch API response.
| Constructor Summary | |
|---|---|
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 | |
|---|---|
boolean |
equals(Object that)
|
String |
getBody()
The HTTP response body JSON. |
Integer |
getCode()
The HTTP status code for this response. |
List<BatchHeader> |
getHeaders()
The HTTP response headers. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BatchResponse(Integer code,
List<BatchHeader> headers,
String body)
code - HTTP status code.headers - HTTP headers.body - JSON body.| Method Detail |
|---|
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object that)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()public Integer getCode()
public String getBody()
public List<BatchHeader> getHeaders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||