public static class BoxRequestsFolder.GetTrashedItems extends BoxRequest<BoxIteratorItems,BoxRequestsFolder.GetTrashedItems> implements BoxCacheableRequest<BoxIteratorItems>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactoryJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
GetTrashedItems(java.lang.String requestUrl,
BoxSession session)
Creates a request to get trashed items with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
BoxIteratorItems |
sendForCachedResult()
Sends the request to fetch results from cache synchronously.
|
BoxFutureTask<BoxIteratorItems> |
toTaskForCachedResult()
Converts the request to a BoxCacheFutureTask that can be used to execute the request
asynchronously.
|
buildUrl, createHeaderMap, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, onSendCompleted, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic GetTrashedItems(java.lang.String requestUrl,
BoxSession session)
requestUrl - URL of the trashed items endpoint.session - the authenticated session that will be used to make the request with.public BoxIteratorItems sendForCachedResult() throws BoxException
BoxCacheableRequestsendForCachedResult in interface BoxCacheableRequest<BoxIteratorItems>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig, or if
there was another issue getting cached results.public BoxFutureTask<BoxIteratorItems> toTaskForCachedResult() throws BoxException
BoxCacheableRequesttoTaskForCachedResult in interface BoxCacheableRequest<BoxIteratorItems>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig.