public static class BoxRequestsFile.DownloadRepresentation extends BoxRequestDownload<BoxDownload,BoxRequestsFile.DownloadRepresentation>
BoxRequestDownload.DownloadRequestHandlerBoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactory| Modifier and Type | Field and Description |
|---|---|
protected BoxRepresentation |
mRepresentation |
protected int |
mRequestPage
The page number to retrieve in case the representation is paged.
|
mDownloadStartListener, mFileOutputStream, mId, mRangeEnd, mRangeStart, mTargetJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
DownloadRepresentation(java.lang.String id,
java.io.File target,
BoxRepresentation representation,
BoxSession session) |
| Modifier and Type | Method and Description |
|---|---|
protected java.net.URL |
buildUrl() |
boolean |
isPaged()
Returns whether this request supports specifying a page
|
void |
setRequestedPage(int page)
Define which representation page to request (if supported on this representation)
Please refer to
isPaged() to check whether this request supports multiple pages |
getId, getRangeEnd, getRangeStart, getSha1, getTarget, getTargetStream, getVersion, logDebug, setContentAccess, setDownloadStartListener, setHeaders, setProgressListener, setRange, setSha1, setVersioncreateHeaderMap, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logRequest, onSend, onSendCompleted, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskprotected BoxRepresentation mRepresentation
protected int mRequestPage
public DownloadRepresentation(java.lang.String id,
java.io.File target,
BoxRepresentation representation,
BoxSession session)
protected java.net.URL buildUrl()
throws java.net.MalformedURLException,
java.io.UnsupportedEncodingException
buildUrl in class BoxRequest<BoxDownload,BoxRequestsFile.DownloadRepresentation>java.net.MalformedURLExceptionjava.io.UnsupportedEncodingExceptionpublic boolean isPaged()
public void setRequestedPage(int page)
isPaged() to check whether this request supports multiple pagespage - the representation page # to be downloaded