public static class BoxRequestsFile.DownloadAvatar extends BoxRequestDownload<BoxDownload,BoxRequestsFile.DownloadFile>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BoxRequestsFile.DownloadAvatar.AvatarType |
BoxRequestDownload.DownloadRequestHandlerBoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LARGE |
static java.lang.String |
PROFILE |
static java.lang.String |
SMALL |
mDownloadStartListener, mFileOutputStream, mId, mRangeEnd, mRangeStart, mTargetJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
DownloadAvatar(java.lang.String id,
java.io.File target,
java.lang.String requestUrl,
BoxSession session)
Creates a download file to file request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
BoxRequestsFile.DownloadAvatar |
setAvatarType(java.lang.String avatarType)
Set the avatar type to be downloaded
|
getId, getRangeEnd, getRangeStart, getSha1, getTarget, getTargetStream, getVersion, logDebug, setContentAccess, setDownloadStartListener, setHeaders, setProgressListener, setRange, setSha1, setVersionbuildUrl, createHeaderMap, 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, toTaskpublic static final java.lang.String LARGE
public static final java.lang.String SMALL
public static final java.lang.String PROFILE
public DownloadAvatar(java.lang.String id,
java.io.File target,
java.lang.String requestUrl,
BoxSession session)
id - The Id of the file to downloadtarget - The target file to download torequestUrl - URL of the download file endpointsession - The authenticated session that will be used to make the request withpublic BoxRequestsFile.DownloadAvatar setAvatarType(java.lang.String avatarType)
avatarType - The type of avatar requested