public static class BoxRequestsFile.UploadNewVersion extends BoxRequestUpload<BoxFile,BoxRequestsFile.UploadNewVersion>
BoxRequestUpload.UploadRequestHandlerBoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactorymHintHeader, mId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
UploadNewVersion(java.io.InputStream fileInputStream,
java.lang.String requestUrl,
BoxSession session)
Creates an upload new file version request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
protected com.box.androidsdk.content.requests.BoxRequestMultipart |
createMultipartRequest() |
java.lang.String |
getIfMatchEtag()
Returns the etag currently set in the if-match header.
|
void |
setFileName(java.lang.String newFileName)
Set the file name of the new uploaded version.
|
BoxRequestsFile.UploadNewVersion |
setIfMatchEtag(java.lang.String etag)
Sets the if-match header for the request.
|
createHttpRequest, getCreatedDate, getFile, getInputStream, getModifiedDate, getSha1, getUploadSize, sendRequest, setCreatedDate, setHeaders, setModifiedDate, setProgressListener, setSha1, setUploadSizeaddRepresentationHintGroup, createHeaderMap, getId, onSendCompleted, setFieldsbuildUrl, createQuery, equals, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseHashMapEntry, parseJsonObject, send, setBody, setContentType, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic UploadNewVersion(java.io.InputStream fileInputStream,
java.lang.String requestUrl,
BoxSession session)
fileInputStream - input stream of the new file versionrequestUrl - URL of the upload new version endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsFile.UploadNewVersion setIfMatchEtag(java.lang.String etag)
setIfMatchEtag in class BoxRequest<BoxFile,BoxRequestsFile.UploadNewVersion>etag - etag to set in the if-match header.public java.lang.String getIfMatchEtag()
getIfMatchEtag in class BoxRequest<BoxFile,BoxRequestsFile.UploadNewVersion>public void setFileName(java.lang.String newFileName)
protected com.box.androidsdk.content.requests.BoxRequestMultipart createMultipartRequest()
throws java.io.IOException,
BoxException
createMultipartRequest in class BoxRequestUpload<BoxFile,BoxRequestsFile.UploadNewVersion>java.io.IOExceptionBoxException