E - type of BoxJsonObject that is returned in the response.R - type of BoxRequest being created.public abstract class BoxRequestItem<E extends BoxJsonObject,R extends BoxRequest<E,R>> extends BoxRequest<E,R>
BoxRequest.BoxRequestHandler, BoxRequest.ContentTypes, BoxRequest.Methods| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
mId |
mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Modifier | Constructor and Description |
|---|---|
protected |
BoxRequestItem(BoxRequestItem r) |
|
BoxRequestItem(java.lang.Class<E> clazz,
java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Constructs a BoxRequestItem with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the id of the Box item being modified.
|
R |
setFields(java.lang.String... fields)
Sets the fields to return in the response.
|
buildUrl, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logDebug, parseHashMapEntry, parseJsonObject, send, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic BoxRequestItem(java.lang.Class<E> clazz, java.lang.String id, java.lang.String requestUrl, BoxSession session)
clazz - class of the object returned in the response.id - id of the object.requestUrl - URL of the endpoint for the request.session - the authenticated session that will be used to make the request with.protected BoxRequestItem(BoxRequestItem r)
public R setFields(java.lang.String... fields)
fields - fields to return in the response.public java.lang.String getId()