public static class BoxRequestsFolder.GetCollaborations extends BoxRequestItem<BoxIteratorCollaborations,BoxRequestsFolder.GetCollaborations> implements BoxCacheableRequest<BoxIteratorCollaborations>
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 |
|---|
GetCollaborations(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Creates a request that gets the collaborations of a folder with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
BoxIteratorCollaborations |
sendForCachedResult()
Sends the request to fetch results from cache synchronously.
|
BoxFutureTask<BoxIteratorCollaborations> |
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, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic GetCollaborations(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
id - id of the folder to get collaborations onrequestUrl - URL of the folder collaborations endpointsession - the authenticated session that will be used to make the request withpublic BoxIteratorCollaborations sendForCachedResult() throws BoxException
BoxCacheableRequestsendForCachedResult in interface BoxCacheableRequest<BoxIteratorCollaborations>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig, or if
there was another issue getting cached results.public BoxFutureTask<BoxIteratorCollaborations> toTaskForCachedResult() throws BoxException
BoxCacheableRequesttoTaskForCachedResult in interface BoxCacheableRequest<BoxIteratorCollaborations>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig.