public static class BoxRequestsShare.GetSharedLink extends BoxRequestItem<BoxItem,BoxRequestsShare.GetSharedLink> implements BoxCacheableRequest<BoxItem>
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 |
|---|
GetSharedLink(java.lang.String requestUrl,
BoxSharedLinkSession session)
Creates a get item from shared link request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
static BoxRequest.BoxRequestHandler<BoxRequestsShare.GetSharedLink> |
createRequestHandler(BoxRequestsShare.GetSharedLink request) |
java.lang.String |
getIfNoneMatchEtag() |
BoxItem |
sendForCachedResult()
Sends the request to fetch results from cache synchronously.
|
BoxRequestsShare.GetSharedLink |
setIfNoneMatchEtag(java.lang.String etag) |
BoxFutureTask<BoxItem> |
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 GetSharedLink(java.lang.String requestUrl,
BoxSharedLinkSession session)
requestUrl - URL of the shared items endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsShare.GetSharedLink setIfNoneMatchEtag(java.lang.String etag)
setIfNoneMatchEtag in class BoxRequest<BoxItem,BoxRequestsShare.GetSharedLink>public java.lang.String getIfNoneMatchEtag()
getIfNoneMatchEtag in class BoxRequest<BoxItem,BoxRequestsShare.GetSharedLink>public BoxItem sendForCachedResult() throws BoxException
BoxCacheableRequestsendForCachedResult in interface BoxCacheableRequest<BoxItem>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig, or if
there was another issue getting cached results.public BoxFutureTask<BoxItem> toTaskForCachedResult() throws BoxException
BoxCacheableRequesttoTaskForCachedResult in interface BoxCacheableRequest<BoxItem>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig.public static BoxRequest.BoxRequestHandler<BoxRequestsShare.GetSharedLink> createRequestHandler(BoxRequestsShare.GetSharedLink request)