protected static final class DropboxAPI.ChunkedUploadRequest
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
DropboxAPI.ChunkedUploadRequest(org.apache.http.client.methods.HttpUriRequest request,
Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts the upload.
|
DropboxAPI.ChunkedUploadResponse |
upload()
Uploads the chunk to Dropbox using /chunked_upload endpoint.
|
protected DropboxAPI.ChunkedUploadRequest(org.apache.http.client.methods.HttpUriRequest request,
Session session)
public void abort()
public DropboxAPI.ChunkedUploadResponse upload() throws DropboxException
DropboxServerException - If the given offset does not match
the offset the server expectsDropboxIOException - if any network-related error occurs. Could also
occur if there was an error reading from the input streamDropboxUnlinkedException - if the user has revoked access.DropboxException - for any other unknown errors. This is also a
superclass of all other Dropbox exceptions, so you may want to
only catch this exception which signals that some kind of error
occurred.