public static class BoxRequestsFolder.GetFolderInfo extends BoxRequestItem<BoxFolder,BoxRequestsFolder.GetFolderInfo> implements BoxCacheableRequest<BoxFolder>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactorymHintHeader, mId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
GetFolderInfo(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Creates a folder information request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIfNoneMatchEtag()
Returns the etag currently set in the if-none-match header.
|
BoxFolder |
sendForCachedResult()
Sends the request to fetch results from cache synchronously.
|
BoxRequestsFolder.GetFolderInfo |
setIfNoneMatchEtag(java.lang.String etag)
Sets the if-none-match header for the request.
|
BoxRequestsFolder.GetFolderInfo |
setLimit(int limit)
Sets the limit of items that should be returned
|
BoxRequestsFolder.GetFolderInfo |
setOffset(int offset)
Sets the offset of the items that should be returned
|
BoxFutureTask<BoxFolder> |
toTaskForCachedResult()
Converts the request to a BoxCacheFutureTask that can be used to execute the request
asynchronously.
|
addRepresentationHintGroup, createHeaderMap, getId, onSendCompleted, setFieldsbuildUrl, createHttpRequest, createQuery, equals, getIfMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setRequestHandler, setTimeOut, toTaskpublic GetFolderInfo(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
id - id of the folder to get information onrequestUrl - URL of the folder information endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsFolder.GetFolderInfo setIfNoneMatchEtag(java.lang.String etag)
setIfNoneMatchEtag in class BoxRequest<BoxFolder,BoxRequestsFolder.GetFolderInfo>etag - etag to set in the if-none-match header.public java.lang.String getIfNoneMatchEtag()
getIfNoneMatchEtag in class BoxRequest<BoxFolder,BoxRequestsFolder.GetFolderInfo>public BoxRequestsFolder.GetFolderInfo setLimit(int limit)
limit - limit of items to returnpublic BoxRequestsFolder.GetFolderInfo setOffset(int offset)
offset - offset of items to returnpublic 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.