public static class BoxRequestsFile.UploadNewVersion extends BoxRequestUpload<BoxFile,BoxRequestsFile.UploadNewVersion>
BoxRequestUpload.UploadRequestHandlerBoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsmId, 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 |
|---|---|
java.lang.String |
getIfMatchEtag()
Returns the etag currently set in the if-match header.
|
BoxRequestsFile.UploadNewVersion |
setIfMatchEtag(java.lang.String etag)
Sets the if-match header for the request.
|
createHttpRequest, createMultipartRequest, getCreatedDate, getFile, getInputStream, getModifiedDate, getSha1, getUploadSize, sendRequest, setCreatedDate, setHeaders, setModifiedDate, setProgressListener, setSha1, setUploadSizegetId, onSendCompleted, setFieldsbuildUrl, createHeaderMap, 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>