|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.restfb.batch.BatchRequest
public class BatchRequest
Encapsulates a discrete part of an entire Facebook Batch API request.
Must be constructed by BatchRequest.BatchRequestBuilder
.
BatchRequest.BatchRequestBuilder
Nested Class Summary | |
---|---|
static class |
BatchRequest.BatchRequestBuilder
Builder pattern implementation used to construct instances of BatchRequest . |
Method Summary | |
---|---|
boolean |
equals(Object that)
|
String |
getAttachedFiles()
Names of any attached files for this call, for example "cat1, cat2" . |
String |
getBody()
The request body, for example "message=Test status update" . |
String |
getDependsOn()
Another call in the current batch upon which this call depends, for example "get-friends" . |
List<BatchHeader> |
getHeaders()
HTTP Headers to be sent as part of this request. |
String |
getMethod()
The HTTP method to use, for example "GET" . |
String |
getName()
The logical name for this request, for example "get-friends" . |
String |
getRelativeUrl()
The endpoint to hit, for example "me/friends?limit=10" . |
int |
hashCode()
|
boolean |
isOmitResponseOnSuccess()
Will the batch response for this request be null ? |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object that)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public String getMethod()
"GET"
.
public String getRelativeUrl()
"me/friends?limit=10"
.
public String getBody()
"message=Test status update"
.
public String getAttachedFiles()
"cat1, cat2"
.
public String getName()
"get-friends"
.
public String getDependsOn()
"get-friends"
.
public boolean isOmitResponseOnSuccess()
null
?
true
if the batch response for this request will be null
, false
otherwise.public List<BatchHeader> getHeaders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |