public static class BoxRequestsFile.AddFileToCollection extends BoxRequestItem<E,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FIELD_COLLECTIONS |
mIdJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Constructor and Description |
|---|
AddFileToCollection(java.lang.String id,
java.lang.String collectionId,
java.lang.String requestUrl,
BoxSession session)
Creates an add file to collection request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry) |
BoxRequestsFile.AddFileToCollection |
setCollectionId(java.lang.String id)
Sets the collection id in the request to add the file to.
|
getId, setFieldsbuildUrl, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logDebug, logRequest, parseJsonObject, send, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskprotected static final java.lang.String FIELD_COLLECTIONS
public AddFileToCollection(java.lang.String id,
java.lang.String collectionId,
java.lang.String requestUrl,
BoxSession session)
id - id of the file to add to the collectioncollectionId - id of the collection to add the file torequestUrl - URL of the add to collection endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsFile.AddFileToCollection setCollectionId(java.lang.String id)
id - id of the collection to add the file to.protected void parseHashMapEntry(com.eclipsesource.json.JsonObject jsonBody,
java.util.Map.Entry<java.lang.String,java.lang.Object> entry)
parseHashMapEntry in class BoxRequest<E extends BoxItem,R extends BoxRequest<E,R>>