public static class BoxRequestsFolder.GetFolderWithAllItems extends BoxRequestItem<BoxFolder,BoxRequestsFolder.GetFolderWithAllItems> implements BoxCacheableRequest<BoxFolder>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactory| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_LIMIT |
mHintHeader, mId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
GetFolderWithAllItems(java.lang.String folderId,
java.lang.String infoUrl,
java.lang.String itemsUrl,
BoxSession session) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIfNoneMatchEtag() |
BoxFolder |
onSend()
Synchronously make the request to Box and handle the response appropriately.
|
protected void |
onSendCompleted(BoxResponse<BoxFolder> response)
Post action that will be performed after a successful send occurs.
|
BoxFolder |
sendForCachedResult()
Sends the request to fetch results from cache synchronously.
|
BoxRequestsFolder.GetFolderWithAllItems |
setIfNoneMatchEtag(java.lang.String etag) |
BoxRequestsFolder.GetFolderWithAllItems |
setMaximumLimit(int maxLimit) |
BoxFutureTask<BoxFolder> |
toTaskForCachedResult()
Converts the request to a BoxCacheFutureTask that can be used to execute the request
asynchronously.
|
addRepresentationHintGroup, createHeaderMap, getId, setFieldsbuildUrl, createHttpRequest, createQuery, equals, getIfMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setRequestHandler, setTimeOut, toTaskpublic GetFolderWithAllItems(java.lang.String folderId,
java.lang.String infoUrl,
java.lang.String itemsUrl,
BoxSession session)
public BoxFolder onSend() throws BoxException
BoxRequestonSend in class BoxRequest<BoxFolder,BoxRequestsFolder.GetFolderWithAllItems>BoxException - thrown if there was a problem with handling the request.public BoxRequestsFolder.GetFolderWithAllItems setMaximumLimit(int maxLimit)
public BoxRequestsFolder.GetFolderWithAllItems setIfNoneMatchEtag(java.lang.String etag)
setIfNoneMatchEtag in class BoxRequest<BoxFolder,BoxRequestsFolder.GetFolderWithAllItems>public java.lang.String getIfNoneMatchEtag()
getIfNoneMatchEtag in class BoxRequest<BoxFolder,BoxRequestsFolder.GetFolderWithAllItems>public BoxFolder sendForCachedResult() throws BoxException
BoxCacheableRequestsendForCachedResult in interface BoxCacheableRequest<BoxFolder>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig, or if
there was another issue getting cached results.public BoxFutureTask<BoxFolder> toTaskForCachedResult() throws BoxException
BoxCacheableRequesttoTaskForCachedResult in interface BoxCacheableRequest<BoxFolder>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig.protected void onSendCompleted(BoxResponse<BoxFolder> response) throws BoxException
BoxRequestonSendCompleted in class BoxRequestItem<BoxFolder,BoxRequestsFolder.GetFolderWithAllItems>response - response of the BoxRequestBoxException - thrown if there was a problem with handling the request.