Package com.dropbox.core
package com.dropbox.core
-
ClassDescriptionGets thrown when invalid access occurs.This is what is thrown when the Dropbox server tells us that it didn't like something about our request.Thrown when the Dropbox server responds with an HTTP status code we didn't expect.Thrown when we the response from the Dropbox server isn't something we expect.Base class for API-specific exceptions raised by API v2 routes.Identifying information about your application.When you successfully complete the authorization process, the Dropbox server returns this information to you.Used by the example code to remember auth information.Class for handling download requests.The base exception thrown by Dropbox API calls.This is for mocking things out during testing.Use with
DbxOAuth1Upgraderto convert old OAuth 1 access tokens to OAuth 2 access tokens.Lets you convert OAuth 1 access tokens to OAuth 2 access tokens.This class should be lib/jar private.This class does the OAuth2 "authorization code" flow with Proof Key for Code Exchange(PKCE).DbxRequest<T>A functional interface representing a request that produces a result<T>and may throw a checked exception.A grouping of a few configuration parameters for how we should make requests to the Dropbox servers.Builder forDbxRequestConfig.DbxRequestUtil.RequestMaker<T,E extends Throwable> An interface that lets you save, retrieve, and clear a single value in the user's web session.ADbxSessionStoreimplementation that stores the value using the standardHttpSessioninterface from the Java Servlet API.DbxStreamReader<E extends Throwable>A callback for streaming data from anInputStream.ADbxStreamReaderthat gets its source data from the givenOutputStream.DbxStreamWriter<E extends Throwable>A callback for streaming data to anOutputStream.ADbxStreamWriterthat gets its source data from the givenInputStream.DbxUploader<R,E, X extends DbxApiException> Class for completing upload requests.Does the OAuth 2 "authorization code" flow.Thrown when the parameters passed to your redirect URI are not well-formed.Thrown if all the parameters to your redirect URI are well-formed, but there's no CSRF token in the session.Thrown if the given 'state' parameter doesn't contain the expected CSRF token.The base class for authorization redirect errors.Thrown when Dropbox tells us that the user chose not to grant your app access to their Dropbox account (i.e.Thrown when Dropbox tells us that some other error occurred in the authorization process.OAuth web-based authorization flow request.Builder for OAuth2 requests.Deprecated.For internal use only.If this field is present, Dropbox server will return a token with all scopes user previously granted your app.Gets thrown when the access token you're using to make API calls is invalid.Human-readable text localized to a specific locale.This gets thrown when there's anIOExceptionwhen reading or writing to the network (when communicating with the Dropbox API servers).Wraps an existing input stream, converting all the underlying stream'sIOExceptions to our ownNoThrowInputStream.HiddenException, which is a subclass ofRuntimeException.Wraps an existing output stream, converting all the underlying stream'sIOExceptions to our ownNoThrowOutputStream.HiddenException, which is a subclass ofRuntimeException.Gets thrown when an invalid path rood is supplied.Something unexpected happened with either the request or the response.The server is overloaded, or you have hit a rate limit.A transient exception has occurred and the request should be retried.The server said that something went wrong on its end (HTTP 500 error code).Whether or not to include refresh token inDbxAuthFinishNon-mobile apps use it inDbxWebAuth.
DbxWebAuthinstead with aDbxWebAuth.Requestconfigured with no redirect URI (seeDbxWebAuth.Request.Builder.withNoRedirect()).