public static class BoxRequestsMetadata.UpdateItemMetadata<T extends BoxRequestsMetadata.UpdateItemMetadata,R extends BoxRequestsMetadata.UpdateItemMetadata<T,R>> extends BoxRequest<BoxMetadata,R>
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxRequestsMetadata.UpdateItemMetadata.Operations
ENUM that defines all possible update operations.
|
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 |
|---|
UpdateItemMetadata(java.lang.String requestUrl,
BoxSession session)
Creates a update file metadata request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
R |
addUpdateTask(BoxRequestsMetadata.UpdateItemMetadata.Operations operation,
java.lang.String key)
Defaults new value to an empty string.
|
R |
addUpdateTask(BoxRequestsMetadata.UpdateItemMetadata.Operations operation,
java.lang.String key,
java.lang.String value)
Add new update task to request.
|
protected R |
setUpdateTasks(BoxArray<com.box.androidsdk.content.requests.BoxRequestsMetadata.UpdateItemMetadata.BoxMetadataUpdateTask> updateTasks)
Updates the values of the item used in the request.
|
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 UpdateItemMetadata(java.lang.String requestUrl,
BoxSession session)
requestUrl - URL of the file metadata endpointsession - the authenticated session that will be used to make the request withprotected R setUpdateTasks(BoxArray<com.box.androidsdk.content.requests.BoxRequestsMetadata.UpdateItemMetadata.BoxMetadataUpdateTask> updateTasks)
updateTasks - task list for metadata update.public R addUpdateTask(BoxRequestsMetadata.UpdateItemMetadata.Operations operation, java.lang.String key, java.lang.String value)
operation - The operation to apply.key - The key.value - The value for the path (key). Can leave blank if performing REMOVE operation.public R addUpdateTask(BoxRequestsMetadata.UpdateItemMetadata.Operations operation, java.lang.String key)
operation - The operation to apply.key - The key.