public static class BoxRequestsShare.GetCollaborationInfo extends BoxRequest<BoxCollaboration,BoxRequestsShare.GetCollaborationInfo> implements BoxCacheableRequest<BoxCollaboration>
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 |
|---|
GetCollaborationInfo(java.lang.String collaborationId,
java.lang.String requestUrl,
BoxSession session)
Creates a request to get a collaboration with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the id of the collaboration being retrieved.
|
protected void |
onSendCompleted(BoxResponse<BoxCollaboration> response)
Post action that will be performed after a successful send occurs.
|
BoxCollaboration |
sendForCachedResult()
Sends the request to fetch results from cache synchronously.
|
BoxFutureTask<BoxCollaboration> |
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, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic GetCollaborationInfo(java.lang.String collaborationId,
java.lang.String requestUrl,
BoxSession session)
collaborationId - id of the collaboration to retrieve information ofrequestUrl - URL of the collaboration endpointsession - the authenticated session that will be used to make the request withpublic java.lang.String getId()
protected void onSendCompleted(BoxResponse<BoxCollaboration> response) throws BoxException
BoxRequestonSendCompleted in class BoxRequest<BoxCollaboration,BoxRequestsShare.GetCollaborationInfo>response - response of the BoxRequestBoxException - thrown if there was a problem with handling the request.public BoxCollaboration sendForCachedResult() throws BoxException
BoxCacheableRequestsendForCachedResult in interface BoxCacheableRequest<BoxCollaboration>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig, or if
there was another issue getting cached results.public BoxFutureTask<BoxCollaboration> toTaskForCachedResult() throws BoxException
BoxCacheableRequesttoTaskForCachedResult in interface BoxCacheableRequest<BoxCollaboration>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig.