public static class BoxRequestsFile.GetFileComments extends BoxRequestItem<BoxIteratorComments,BoxRequestsFile.GetFileComments> implements BoxCacheableRequest<BoxIteratorComments>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsmId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
GetFileComments(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Creates a get file comments request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
BoxIteratorComments |
sendForCachedResult()
Sends the request to fetch results from cache synchronously.
|
BoxFutureTask<BoxIteratorComments> |
toTaskForCachedResult()
Converts the request to a BoxCacheFutureTask that can be used to execute the request
asynchronously.
|
getId, onSendCompleted, setFieldsbuildUrl, createHeaderMap, 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 GetFileComments(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
id - id of the file to get comments ofrequestUrl - URL of the file comments endpointsession - the authenticated session that will be used to make the request withpublic BoxIteratorComments sendForCachedResult() throws BoxException
BoxCacheableRequestsendForCachedResult in interface BoxCacheableRequest<BoxIteratorComments>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig, or if
there was another issue getting cached results.public BoxFutureTask<BoxIteratorComments> toTaskForCachedResult() throws BoxException
BoxCacheableRequesttoTaskForCachedResult in interface BoxCacheableRequest<BoxIteratorComments>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig.