public static class BoxRequestsMetadata.GetMetadataTemplateSchema extends BoxRequest<BoxMetadata,BoxRequestsMetadata.GetMetadataTemplateSchema> implements BoxCacheableRequest<BoxMetadata>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
GetMetadataTemplateSchema(java.lang.String requestUrl,
BoxSession session)
Creates a delete file metadata request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
BoxMetadata |
sendForCachedResult()
Sends the request to fetch results from cache synchronously.
|
BoxFutureTask<BoxMetadata> |
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, onSendCompleted, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic GetMetadataTemplateSchema(java.lang.String requestUrl,
BoxSession session)
requestUrl - URL of the file metadata endpointsession - the authenticated session that will be used to make the request withpublic BoxMetadata sendForCachedResult() throws BoxException
BoxCacheableRequestsendForCachedResult in interface BoxCacheableRequest<BoxMetadata>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig, or if
there was another issue getting cached results.public BoxFutureTask<BoxMetadata> toTaskForCachedResult() throws BoxException
BoxCacheableRequesttoTaskForCachedResult in interface BoxCacheableRequest<BoxMetadata>BoxException - thrown if there is no implementation of BoxCache set in BoxConfig.