public class BoxRequestBatch extends BoxRequest<BoxResponseBatch,BoxRequestBatch>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<BoxRequest> |
mRequests |
mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Constructor and Description |
|---|
BoxRequestBatch()
Initializes a new BoxRequestBatch
|
| Modifier and Type | Method and Description |
|---|---|
BoxRequestBatch |
addRequest(BoxRequest request)
Adds a BoxRequest to the batch
|
BoxResponseBatch |
send()
Synchronously make the request to Box and handle the response appropriately.
|
buildUrl, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logDebug, logRequest, parseHashMapEntry, parseJsonObject, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskprotected java.util.ArrayList<BoxRequest> mRequests
public BoxRequestBatch addRequest(BoxRequest request)
request - the BoxRequest to addpublic BoxResponseBatch send() throws BoxException
BoxRequestsend in class BoxRequest<BoxResponseBatch,BoxRequestBatch>BoxException - thrown if there was a problem with handling the request.