public abstract class BoxRequestList<E extends BoxIterator,R extends BoxRequest<E,R>> extends BoxRequestItem<E,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsmId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
BoxRequestList(java.lang.Class<E> clazz,
java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Creates a list request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
R |
setLimit(int limit)
Sets the limit of items that should be returned
|
R |
setOffset(int offset)
Sets the offset of the items that should be returned
|
getId, onSendCompleted, setFieldsbuildUrl, createHeaderMap, 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, toTaskpublic BoxRequestList(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 list to get the items ofrequestUrl - URL of the list items endpointsession - the authenticated session that will be used to make the request withpublic R setLimit(int limit)
limit - limit of items to returnpublic R setOffset(int offset)
offset - offset of items to return