public class BatchRequest extends Object
Must be constructed by BatchRequest.BatchRequestBuilder
.
BatchRequest.BatchRequestBuilder
Modifier and Type | Class and Description |
---|---|
static class |
BatchRequest.BatchRequestBuilder
Builder pattern implementation used to construct instances of
BatchRequest . |
Modifier and Type | Method and Description |
---|---|
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 {@code "me/friends?
|
int |
hashCode() |
boolean |
isOmitResponseOnSuccess()
Will the batch response for this request be
null ? |
String |
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()
RestFB 1.31.0. Copyright © 2010-2015 Mark Allen. All Rights Reserved.