public static class BoxRequestUpload.UploadRequestHandler extends BoxRequest.BoxRequestHandler<BoxRequestUpload>
DEFAULT_NUM_RETRIES, DEFAULT_RATE_LIMIT_WAIT, mNumRateLimitRetries, mRequest, OAUTH_ERROR_HEADER, OAUTH_INVALID_TOKEN, WWW_AUTHENTICATE| Constructor and Description |
|---|
UploadRequestHandler(BoxRequestUpload request)
Constructs a DownloadRequestHandler with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends BoxObject> |
onResponse(java.lang.Class<T> clazz,
BoxHttpResponse response)
Parse the response from the server into the expected object T.
|
disconnectForInterrupt, getRetryAfterFromResponse, isResponseSuccess, onException, retryRateLimitedpublic UploadRequestHandler(BoxRequestUpload request)
request - a BoxRequestDownload this handler is responsible for.public <T extends BoxObject> T onResponse(java.lang.Class<T> clazz, BoxHttpResponse response) throws java.lang.IllegalAccessException, java.lang.InstantiationException, BoxException
BoxRequest.BoxRequestHandleronResponse in class BoxRequest.BoxRequestHandler<BoxRequestUpload>T - the class to return an instance of.clazz - the class to use to construct an instance of T in which to parse data to.response - the response from the server.java.lang.IllegalAccessException - thrown if clazz this class does not have access to the constructor for clazz.java.lang.InstantiationException - thrown if clazz cannot be instantiated for example if it does not have a default contsructor.BoxException - thrown for any type of server exception or server response indicating an error.