E - type of BoxItem that is returned in the response.R - type of BoxRequest that is being created.public abstract class BoxRequestCollectionUpdate<E extends BoxItem,R extends BoxRequest<E,R>> extends BoxRequestItem<E,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactory| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FIELD_COLLECTIONS |
mHintHeader, mId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
BoxRequestCollectionUpdate(java.lang.Class<E> clazz,
java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Constructs an update collection request with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected R |
setCollectionId(java.lang.String id)
Sets the id of the collection to update.
|
addRepresentationHintGroup, createHeaderMap, getId, onSendCompleted, setFieldsbuildUrl, 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, toTaskprotected static final java.lang.String FIELD_COLLECTIONS
public BoxRequestCollectionUpdate(java.lang.Class<E> clazz, java.lang.String id, java.lang.String requestUrl, BoxSession session)
clazz - class of the BoxItem returned in the response.id - id of the item to add to/remove from a collection.requestUrl - URL of the update collection endpoint.session - the authenticated session that will be used to make the request with.protected R setCollectionId(java.lang.String id)
id - id of the collection to update.