The request itself is a BoxJSONRequest but extends it to provide additional functionality for aggregating a bunch of requests and responding with multiple responses as if the requests were called individually
@Deprecated public class BatchAPIRequest extends BoxJSONRequest
BoxAPIRequest.RequestHeader
Modifier and Type | Field and Description |
---|---|
static URLTemplate |
BATCH_URL_TEMPLATE
Deprecated.
Batch URL Template.
|
Constructor and Description |
---|
BatchAPIRequest(BoxAPIConnection api)
Deprecated.
As of 2.39.0, BatchAPI Request will no longer be supported.
Constructs an authenticated BatchRequest using a provided BoxAPIConnection.
|
Modifier and Type | Method and Description |
---|---|
List<BoxAPIResponse> |
execute(List<BoxAPIRequest> requests)
Deprecated.
As of 2.39.0, BatchAPI Request will no longer be supported.
Execute a set of API calls as batch request.
|
protected List<BoxAPIResponse> |
parseResponse(BoxJSONResponse batchResponse)
Deprecated.
As of 2.39.0, BatchAPI Request will no longer be supported.
Parses btch api response to create a list of BoxAPIResponse objects.
|
protected void |
prepareRequest(List<BoxAPIRequest> requests)
Deprecated.
As of 2.39.0, BatchAPI Request will no longer be supported.
Prepare a batch api request using list of individual reuests.
|
bodyToString, getBodyAsJsonObject, getBodyAsJsonValue, setBody, setBody
addHeader, getBody, getConnectTimeout, getHeaders, getMethod, getReadTimeout, getUrl, isRequestRetryable, isResponseRetryable, resetBody, send, send, sendWithoutRetry, setBody, setBody, setConnectTimeout, setFollowRedirects, setReadTimeout, toString, writeBody
public static final URLTemplate BATCH_URL_TEMPLATE
@Deprecated public BatchAPIRequest(BoxAPIConnection api)
api
- an API connection for authenticating the request.@Deprecated public List<BoxAPIResponse> execute(List<BoxAPIRequest> requests)
requests
- list of api requests that has to be executed in batch.@Deprecated protected void prepareRequest(List<BoxAPIRequest> requests)
requests
- list of api requests that has to be executed in batch.@Deprecated protected List<BoxAPIResponse> parseResponse(BoxJSONResponse batchResponse)
batchResponse
- response of a batch api request