A B C D E F G H I J K L M O P Q R S T U V W _

A

abort() - Method in class com.dropbox.client2.DropboxAPI.BasicUploadRequest
Aborts the request.
abort() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploader
Aborts this chunked upload if it was already in progress.
abort() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploadRequest
Aborts the upload.
abort() - Method in interface com.dropbox.client2.DropboxAPI.UploadRequest
Aborts the request.
AbstractSession - Class in com.dropbox.client2.session
Keeps track of a logged in user and contains configuration options for the DropboxAPI.
AbstractSession(AppKeyPair, Session.AccessType) - Constructor for class com.dropbox.client2.session.AbstractSession
Creates a new session with the given app key and secret, and access type.
AbstractSession(AppKeyPair, Session.AccessType, AccessTokenPair) - Constructor for class com.dropbox.client2.session.AbstractSession
Creates a new session with the given app key and secret, and access type.
AccessTokenPair - Class in com.dropbox.client2.session
Holds a user's access token and secret.
AccessTokenPair(String, String) - Constructor for class com.dropbox.client2.session.AccessTokenPair
 
accountInfo() - Method in class com.dropbox.client2.DropboxAPI
Returns the DropboxAPI.Account associated with the current Session.
ACTION_AUTHENTICATE_V1 - Static variable in class com.dropbox.client2.android.AuthActivity
The Android action which the official Dropbox app will accept to authenticate a user.
addFromCopyRef(String, String) - Method in class com.dropbox.client2.DropboxAPI
Creates a file in the Dropbox that the client is currently connected to, using the contents from a CopyRef created with createCopyRef().
AndroidAuthSession - Class in com.dropbox.client2.android
Keeps track of a logged in user and contains configuration options for the DropboxAPI.
AndroidAuthSession(AppKeyPair, Session.AccessType) - Constructor for class com.dropbox.client2.android.AndroidAuthSession
Creates a new session to authenticate Android apps with the given app key pair and access type.
AndroidAuthSession(AppKeyPair, Session.AccessType, AccessTokenPair) - Constructor for class com.dropbox.client2.android.AndroidAuthSession
Creates a new session to authenticate Android apps with the given app key pair and access type.
AppKeyPair - Class in com.dropbox.client2.session
Holds your app's key and secret.
AppKeyPair(String, String) - Constructor for class com.dropbox.client2.session.AppKeyPair
 
assertAuthenticated() - Method in class com.dropbox.client2.DropboxAPI
Throws a DropboxUnlinkedException if the session in this instance is not linked.
AUTH_VERSION - Static variable in class com.dropbox.client2.android.AuthActivity
 
AuthActivity - Class in com.dropbox.client2.android
 
AuthActivity() - Constructor for class com.dropbox.client2.android.AuthActivity
 
authenticationSuccessful() - Method in class com.dropbox.client2.android.AndroidAuthSession
Returns whether the user successfully authenticated with Dropbox.

B

body - Variable in exception com.dropbox.client2.exception.DropboxServerException
The body, if any, of the returned error.
buildURL(String, int, String, String[]) - Static method in class com.dropbox.client2.RESTUtility
Creates a URL for a request to the Dropbox API.
bytes - Variable in class com.dropbox.client2.DropboxAPI.Entry
Size of the file.
bytesTransferred - Variable in exception com.dropbox.client2.exception.DropboxPartialFileException
The number of bytes successfully transferred.

C

chunkedUploadRequest(InputStream, long, ProgressListener, long, String) - Method in class com.dropbox.client2.DropboxAPI
Creates a request that can upload a single chunk of data to the server via the chunked upload protocol.
clientMtime - Variable in class com.dropbox.client2.DropboxAPI.Entry
For a file, this is the modification time set by the client when the file was added to Dropbox.
close() - Method in class com.dropbox.client2.DropboxAPI.DropboxInputStream
Closes this stream and aborts the request to Dropbox, releasing any associated resources.
com.dropbox.client2 - package com.dropbox.client2
 
com.dropbox.client2.android - package com.dropbox.client2.android
 
com.dropbox.client2.exception - package com.dropbox.client2.exception
 
com.dropbox.client2.jsonextract - package com.dropbox.client2.jsonextract
 
com.dropbox.client2.session - package com.dropbox.client2.session
 
contents - Variable in class com.dropbox.client2.DropboxAPI.Entry
A list of immediate children if this is a directory.
copy(String, String) - Method in class com.dropbox.client2.DropboxAPI
Copies a file or folder (and all of the folder's contents) from one path to another.
copyRef - Variable in class com.dropbox.client2.DropboxAPI.CreatedCopyRef
 
copyStreamToOutput(OutputStream, ProgressListener) - Method in class com.dropbox.client2.DropboxAPI.DropboxInputStream
Copies from a DropboxAPI.DropboxInputStream to an OutputStream, optionally providing updates via a ProgressListener.
country - Variable in class com.dropbox.client2.DropboxAPI.Account
The user's ISO country code.
createCopyRef(String) - Method in class com.dropbox.client2.DropboxAPI
Creates a reference to a path that can be used with addFromCopyRef() to copy the contents of the file at that path to a different Dropbox account.
createFolder(String) - Method in class com.dropbox.client2.DropboxAPI
Creates a new Dropbox folder.
cursor - Variable in class com.dropbox.client2.DropboxAPI.DeltaPage
A string that is used to keep track of your current state.

D

delete(String) - Method in class com.dropbox.client2.DropboxAPI
Deletes a file or folder (and all of the folder's contents).
delta(String) - Method in class com.dropbox.client2.DropboxAPI
A way of letting you keep up with changes to files and folders in a user's Dropbox.
displayName - Variable in class com.dropbox.client2.DropboxAPI.Account
The user's "real" name.
DropboxAPI<SESS_T extends Session> - Class in com.dropbox.client2
Location of the Dropbox API functions.
DropboxAPI(SESS_T) - Constructor for class com.dropbox.client2.DropboxAPI
 
DropboxAPI.Account - Class in com.dropbox.client2
Information about a user's account.
DropboxAPI.Account(Map<String, Object>) - Constructor for class com.dropbox.client2.DropboxAPI.Account
Creates an account from a Map.
DropboxAPI.Account(String, String, long, String, long, long, long) - Constructor for class com.dropbox.client2.DropboxAPI.Account
Creates an account object from an initial set of values.
DropboxAPI.BasicUploadRequest - Class in com.dropbox.client2
 
DropboxAPI.BasicUploadRequest(HttpUriRequest, Session) - Constructor for class com.dropbox.client2.DropboxAPI.BasicUploadRequest
 
DropboxAPI.ChunkedUploader - Class in com.dropbox.client2
Represents a single chunked upload in progress.
DropboxAPI.ChunkedUploadRequest - Class in com.dropbox.client2
Class representing the uploading of a single chunk of data to Dropbox using the long upload protocol.
DropboxAPI.ChunkedUploadRequest(HttpUriRequest, Session) - Constructor for class com.dropbox.client2.DropboxAPI.ChunkedUploadRequest
 
DropboxAPI.ChunkedUploadResponse - Class in com.dropbox.client2
Represents Dropbox's response to a call to the /chunked_upload endpoint, which contains the uploadId of the upload as well as the expected file offset.
DropboxAPI.ChunkedUploadResponse(Map<String, Object>) - Constructor for class com.dropbox.client2.DropboxAPI.ChunkedUploadResponse
Constructs a ChunkedUploadResponse from the raw json Map returned by the server
DropboxAPI.CreatedCopyRef - Class in com.dropbox.client2
 
DropboxAPI.CreatedCopyRef(String, String) - Constructor for class com.dropbox.client2.DropboxAPI.CreatedCopyRef
 
DropboxAPI.DeltaEntry<MD> - Class in com.dropbox.client2
A single entry in a DeltaPage.
DropboxAPI.DeltaEntry(String, MD) - Constructor for class com.dropbox.client2.DropboxAPI.DeltaEntry
 
DropboxAPI.DeltaEntry.JsonExtractor<MD> - Class in com.dropbox.client2
 
DropboxAPI.DeltaEntry.JsonExtractor(JsonExtractor<MD>) - Constructor for class com.dropbox.client2.DropboxAPI.DeltaEntry.JsonExtractor
 
DropboxAPI.DeltaPage<MD> - Class in com.dropbox.client2
A page of DeltaEntrys (returned by delta).
DropboxAPI.DeltaPage(boolean, List<DropboxAPI.DeltaEntry<MD>>, String, boolean) - Constructor for class com.dropbox.client2.DropboxAPI.DeltaPage
 
DropboxAPI.DropboxFileInfo - Class in com.dropbox.client2
Contains info describing a downloaded file.
DropboxAPI.DropboxInputStream - Class in com.dropbox.client2
An InputStream for a file download that includes the associated DropboxAPI.DropboxFileInfo.
DropboxAPI.DropboxInputStream(HttpUriRequest, HttpResponse) - Constructor for class com.dropbox.client2.DropboxAPI.DropboxInputStream
 
DropboxAPI.DropboxLink - Class in com.dropbox.client2
Contains a link to a Dropbox stream or share and its expiration date.
DropboxAPI.Entry - Class in com.dropbox.client2
A metadata entry that describes a file or folder.
DropboxAPI.Entry(Map<String, Object>) - Constructor for class com.dropbox.client2.DropboxAPI.Entry
Creates an entry from a map, usually received from the metadata call.
DropboxAPI.Entry() - Constructor for class com.dropbox.client2.DropboxAPI.Entry
 
DropboxAPI.RequestAndResponse - Class in com.dropbox.client2
Holds an HttpUriRequest and the associated HttpResponse.
DropboxAPI.RequestAndResponse(HttpUriRequest, HttpResponse) - Constructor for class com.dropbox.client2.DropboxAPI.RequestAndResponse
 
DropboxAPI.ThumbFormat - Enum in com.dropbox.client2
Represents the image format of thumbnails that the API can return.
DropboxAPI.ThumbSize - Enum in com.dropbox.client2
Represents the size of thumbnails that the API can return.
DropboxAPI.UploadRequest - Interface in com.dropbox.client2
A request to upload a file to Dropbox.
DropboxException - Exception in com.dropbox.client2.exception
A base for all exceptions from using the API.
DropboxException() - Constructor for exception com.dropbox.client2.exception.DropboxException
 
DropboxException(String) - Constructor for exception com.dropbox.client2.exception.DropboxException
 
DropboxException(String, Throwable) - Constructor for exception com.dropbox.client2.exception.DropboxException
 
DropboxException(Throwable) - Constructor for exception com.dropbox.client2.exception.DropboxException
 
DropboxFileSizeException - Exception in com.dropbox.client2.exception
Thrown when trying to upload a file larger than the API can handle.
DropboxFileSizeException(String) - Constructor for exception com.dropbox.client2.exception.DropboxFileSizeException
 
DropboxIOException - Exception in com.dropbox.client2.exception
Encapsulates an IOExceptions when using the API, typically resulting from network-related issues.
DropboxIOException(IOException) - Constructor for exception com.dropbox.client2.exception.DropboxIOException
 
DropboxIOException(String) - Constructor for exception com.dropbox.client2.exception.DropboxIOException
 
DropboxLocalStorageFullException - Exception in com.dropbox.client2.exception
Thrown when writing to local storage and there is no more room.
DropboxLocalStorageFullException() - Constructor for exception com.dropbox.client2.exception.DropboxLocalStorageFullException
 
DropboxParseException - Exception in com.dropbox.client2.exception
Indicates there was trouble parsing a response from Dropbox.
DropboxParseException(BufferedReader) - Constructor for exception com.dropbox.client2.exception.DropboxParseException
 
DropboxParseException(String) - Constructor for exception com.dropbox.client2.exception.DropboxParseException
 
DropboxPartialFileException - Exception in com.dropbox.client2.exception
Used when only part of a file was transferred to/from Dropbox when using the API.
DropboxPartialFileException(long) - Constructor for exception com.dropbox.client2.exception.DropboxPartialFileException
 
DropboxServerException - Exception in com.dropbox.client2.exception
Wraps any non-200 HTTP responses from an API call.
DropboxServerException(HttpResponse) - Constructor for exception com.dropbox.client2.exception.DropboxServerException
Creates a DropboxServerException from an HttpResponse.
DropboxServerException(HttpResponse, Object) - Constructor for exception com.dropbox.client2.exception.DropboxServerException
Creates a DropboxServerException from an HttpResponse.
DropboxServerException.Error - Class in com.dropbox.client2.exception
 
DropboxServerException.Error(Map<String, Object>) - Constructor for class com.dropbox.client2.exception.DropboxServerException.Error
 
DropboxSSLException - Exception in com.dropbox.client2.exception
Wraps any SSL-related exceptions thrown when using the API.
DropboxSSLException(SSLException) - Constructor for exception com.dropbox.client2.exception.DropboxSSLException
 
DropboxUnlinkedException - Exception in com.dropbox.client2.exception
Thrown when the API can only be used when linked but it's not.
DropboxUnlinkedException() - Constructor for exception com.dropbox.client2.exception.DropboxUnlinkedException
 
DropboxUnlinkedException(String) - Constructor for exception com.dropbox.client2.exception.DropboxUnlinkedException
 

E

elementExtractor - Variable in class com.dropbox.client2.jsonextract.JsonList.Extractor
 
elementExtractor - Variable in class com.dropbox.client2.jsonextract.JsonThing.OptionalExtractor
 
entries - Variable in class com.dropbox.client2.DropboxAPI.DeltaPage
Apply these entries to your local state to catch up with the Dropbox server's state.
equals(Object) - Method in class com.dropbox.client2.session.TokenPair
 
equals(TokenPair) - Method in class com.dropbox.client2.session.TokenPair
 
error - Variable in exception com.dropbox.client2.exception.DropboxServerException
The HTTP error code.
error - Variable in class com.dropbox.client2.exception.DropboxServerException.Error
English version of the error.
execute(Session, HttpUriRequest) - Static method in class com.dropbox.client2.RESTUtility
Executes an HttpUriRequest with the given Session and returns an HttpResponse.
execute(Session, HttpUriRequest, int) - Static method in class com.dropbox.client2.RESTUtility
Executes an HttpUriRequest with the given Session and returns an HttpResponse.
expectBoolean() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
expectInt64() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
expectLength(int) - Method in class com.dropbox.client2.jsonextract.JsonList
 
expectList() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
expectMap() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
expectNull() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
expectNumber() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
expectString() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
expectStringOrNull() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
expiration - Variable in class com.dropbox.client2.DropboxAPI.CreatedCopyRef
 
expires - Variable in class com.dropbox.client2.DropboxAPI.DropboxLink
When the url expires (after which this link will no longer work)
EXTRA_ACCESS_SECRET - Static variable in class com.dropbox.client2.android.AuthActivity
The extra that goes in an intent when returning from Dropbox auth to provide the user's access token secret, if auth succeeded.
EXTRA_ACCESS_TOKEN - Static variable in class com.dropbox.client2.android.AuthActivity
The extra that goes in an intent when returning from Dropbox auth to provide the user's access token, if auth succeeded.
EXTRA_CALLING_PACKAGE - Static variable in class com.dropbox.client2.android.AuthActivity
Used for internal authentication.
EXTRA_CONSUMER_KEY - Static variable in class com.dropbox.client2.android.AuthActivity
The extra that goes in an intent to provide your consumer key for Dropbox authentication.
EXTRA_CONSUMER_SIG - Static variable in class com.dropbox.client2.android.AuthActivity
Used for internal authentication.
EXTRA_UID - Static variable in class com.dropbox.client2.android.AuthActivity
The extra that goes in an intent when returning from Dropbox auth to provide the user's Dropbox UID, if auth succeeded.
extract(JsonThing) - Method in class com.dropbox.client2.DropboxAPI.DeltaEntry.JsonExtractor
 
extract(JsonThing, JsonExtractor<MD>) - Static method in class com.dropbox.client2.DropboxAPI.DeltaEntry.JsonExtractor
 
extract(JsonThing) - Method in class com.dropbox.client2.jsonextract.JsonExtractor
 
extract(JsonExtractor<T>) - Method in class com.dropbox.client2.jsonextract.JsonList
 
extract(JsonThing) - Method in class com.dropbox.client2.jsonextract.JsonList.Extractor
 
extract(JsonThing) - Method in class com.dropbox.client2.jsonextract.JsonThing.OptionalExtractor
 
extractFromJson(JsonThing) - Static method in class com.dropbox.client2.DropboxAPI.CreatedCopyRef
 
extractFromJson(JsonThing, JsonExtractor<MD>) - Static method in class com.dropbox.client2.DropboxAPI.DeltaPage
 

F

fields - Variable in class com.dropbox.client2.exception.DropboxServerException.Error
 
fileName() - Method in class com.dropbox.client2.DropboxAPI.Entry
Returns the file name if this is a file (the part after the last slash in the path).
finish(String, String) - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploader
Completes a chunked upload, commiting the already uploaded file to Dropbox.
finishAuthentication() - Method in class com.dropbox.client2.android.AndroidAuthSession
Sets up a user's access token and secret in this session when you return to your activity from the Dropbox authentication process.

G

get(int) - Method in class com.dropbox.client2.jsonextract.JsonList
 
get(String) - Method in class com.dropbox.client2.jsonextract.JsonMap
 
get() - Static method in class com.dropbox.client2.SdkVersion
Returns the SDK version number.
getAccessTokenPair() - Method in class com.dropbox.client2.session.AbstractSession
 
getAccessTokenPair() - Method in interface com.dropbox.client2.session.Session
Returns the currently logged in user's access token and secret.
getAccessType() - Method in class com.dropbox.client2.session.AbstractSession
 
getAccessType() - Method in interface com.dropbox.client2.session.Session
Returns what Dropbox access type to use (currently app folder or entire Dropbox).
getActive() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploader
Whether or not this ChunkedUploader is active and has not yet been aborted.
getAPIServer() - Method in class com.dropbox.client2.session.AbstractSession
 
getAPIServer() - Method in interface com.dropbox.client2.session.Session
Returns the Dropbox API server.
getAppKeyPair() - Method in class com.dropbox.client2.session.AbstractSession
 
getAppKeyPair() - Method in interface com.dropbox.client2.session.Session
Returns the app key and secret.
getAuthInfo() - Method in class com.dropbox.client2.session.WebAuthSession
Starts an authentication request with Dropbox servers and gets all the info you need to start authenticating a user.
getAuthInfo(String) - Method in class com.dropbox.client2.session.WebAuthSession
Starts an authentication request with Dropbox servers and gets all the info you need to start authenticating a user.
getCharset() - Method in class com.dropbox.client2.DropboxAPI.DropboxFileInfo
Returns the charset of the associated file, or null if it is unknown.
getChunkedUploader(InputStream, long) - Method in class com.dropbox.client2.DropboxAPI
Identical to DropboxAPI.getChunkedUploader(InputStream, long, int), but provides a default chunkSize of 4mb
getChunkedUploader(InputStream, long, int) - Method in class com.dropbox.client2.DropboxAPI
Creates a ChunkedUploader using this DropboxAPI's credentials, to upload a file using the chunked upload protocol.
getContentLength() - Method in class com.dropbox.client2.DropboxAPI.DropboxFileInfo
Deprecated. Replaced by DropboxAPI.DropboxFileInfo.getFileSize()
getContentServer() - Method in class com.dropbox.client2.session.AbstractSession
 
getContentServer() - Method in interface com.dropbox.client2.session.Session
Returns the Dropbox content server.
getFile(String, String, OutputStream, ProgressListener) - Method in class com.dropbox.client2.DropboxAPI
Downloads a file from Dropbox, copying it to the output stream.
getFileInfo() - Method in class com.dropbox.client2.DropboxAPI.DropboxInputStream
Returns the DropboxAPI.DropboxFileInfo for the associated file.
getFileSize() - Method in class com.dropbox.client2.DropboxAPI.DropboxFileInfo
Returns the size of the file in bytes (always >= 0).
getFileStream(String, String) - Method in class com.dropbox.client2.DropboxAPI
Downloads a file from Dropbox.
getFromMapAsBoolean(Map<String, Object>, String) - Static method in class com.dropbox.client2.DropboxAPI
Helper function to read boolean JSON return values
getFromMapAsLong(Map<String, Object>, String) - Static method in class com.dropbox.client2.DropboxAPI
Helper function to read long JSON return values
getHttpClient() - Method in class com.dropbox.client2.session.AbstractSession
Will be called every time a request is made to Dropbox, in case you want to use a new client every time.
getHttpClient() - Method in interface com.dropbox.client2.session.Session
Will be called every time a request is made to Dropbox, in case you want to use a new client every time.
getLocale() - Method in class com.dropbox.client2.session.AbstractSession
Returns the locale to use.
getLocale() - Method in interface com.dropbox.client2.session.Session
Returns the locale to use.
getMaybe(String) - Method in class com.dropbox.client2.jsonextract.JsonMap
 
getMetadata() - Method in class com.dropbox.client2.DropboxAPI.DropboxFileInfo
Returns the metadata of the associated file (always non-null).
getMimeType() - Method in class com.dropbox.client2.DropboxAPI.DropboxFileInfo
Returns the MIME type of the associated file, or null if it is unknown.
getOffset() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploader
Returns the last-known byte offset that the server expects to receive.
getOffset() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploadResponse
 
getProxyInfo() - Method in class com.dropbox.client2.session.AbstractSession
Will be called every time a request is made to Dropbox, in case the proxy changes between requests.
getProxyInfo() - Method in interface com.dropbox.client2.session.Session
Will be called every time a request is made to Dropbox, in case the proxy changes between requests.
getSession() - Method in class com.dropbox.client2.DropboxAPI
Returns the Session that this API is using.
getThumbnail(String, OutputStream, DropboxAPI.ThumbSize, DropboxAPI.ThumbFormat, ProgressListener) - Method in class com.dropbox.client2.DropboxAPI
Downloads a thumbnail from Dropbox, copying it to the output stream.
getThumbnailStream(String, DropboxAPI.ThumbSize, DropboxAPI.ThumbFormat) - Method in class com.dropbox.client2.DropboxAPI
Downloads a thumbnail from Dropbox.
getUploadId() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploadResponse
 
getWebServer() - Method in class com.dropbox.client2.session.AbstractSession
 
getWebServer() - Method in interface com.dropbox.client2.session.Session
Returns the Dropbox web server.

H

hash - Variable in class com.dropbox.client2.DropboxAPI.Entry
If a directory, the hash is its "current version".
hashCode() - Method in class com.dropbox.client2.session.TokenPair
 
hasMore - Variable in class com.dropbox.client2.DropboxAPI.DeltaPage
If true, then there are more entries available; you can call delta again immediately to retrieve those entries.
host - Variable in class com.dropbox.client2.session.Session.ProxyInfo
The address of the proxy.

I

icon - Variable in class com.dropbox.client2.DropboxAPI.Entry
Name of the icon to display for this entry.
isBoolean() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
isComplete() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploader
Whether or not this ChunkedUploader has completed its upload.
isDeleted - Variable in class com.dropbox.client2.DropboxAPI.Entry
Whether this entry has been deleted but not removed from the metadata yet.
isDir - Variable in class com.dropbox.client2.DropboxAPI.Entry
True if this entry is a directory, or false if it's a file.
isDuplicateAccount() - Method in exception com.dropbox.client2.exception.DropboxServerException
When this exception comes from creating a new account, returns whether the request failed because an account with the email address already exists.
isInt64() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
isLinked() - Method in class com.dropbox.client2.session.AbstractSession
 
isLinked() - Method in interface com.dropbox.client2.session.Session
Returns whether or not this session has a user's access token and secret.
isList() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
isMap() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
isNull() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
isNumber() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
isString() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
isValidWithNullBody(HttpResponse) - Static method in exception com.dropbox.client2.exception.DropboxServerException
Whether the given response is valid when it has no body (only some error codes are allowed without a reason, currently 302 and 304).
iterator() - Method in class com.dropbox.client2.jsonextract.JsonList
 
iterator() - Method in class com.dropbox.client2.jsonextract.JsonMap
 

J

JsonExtractionException - Exception in com.dropbox.client2.jsonextract
 
JsonExtractionException(String, String, Object) - Constructor for exception com.dropbox.client2.jsonextract.JsonExtractionException
 
JsonExtractor - Static variable in class com.dropbox.client2.DropboxAPI.Entry
 
JsonExtractor<T> - Class in com.dropbox.client2.jsonextract
 
JsonExtractor() - Constructor for class com.dropbox.client2.jsonextract.JsonExtractor
 
JsonList - Class in com.dropbox.client2.jsonextract
(Internal class for extracting JSON.) A JSON "array" (a list of arbitrary JSON values).
JsonList(List<Object>, String) - Constructor for class com.dropbox.client2.jsonextract.JsonList
 
JsonList(List<Object>) - Constructor for class com.dropbox.client2.jsonextract.JsonList
 
JsonList.Extractor<T> - Class in com.dropbox.client2.jsonextract
 
JsonList.Extractor(JsonExtractor<T>) - Constructor for class com.dropbox.client2.jsonextract.JsonList.Extractor
 
JsonMap - Class in com.dropbox.client2.jsonextract
(Internal class for extracting JSON.) A JSON "object" (a mapping of string keys to arbitrary JSON values).
JsonMap(Map<String, Object>, String) - Constructor for class com.dropbox.client2.jsonextract.JsonMap
 
JsonMap(Map<String, Object>) - Constructor for class com.dropbox.client2.jsonextract.JsonMap
 
JsonThing - Class in com.dropbox.client2.jsonextract
(Internal class for extracting JSON.)
JsonThing(Object, String) - Constructor for class com.dropbox.client2.jsonextract.JsonThing
 
JsonThing(Object) - Constructor for class com.dropbox.client2.jsonextract.JsonThing
 
JsonThing.OptionalExtractor<T> - Class in com.dropbox.client2.jsonextract
 
JsonThing.OptionalExtractor(JsonExtractor<T>) - Constructor for class com.dropbox.client2.jsonextract.JsonThing.OptionalExtractor
 

K

key - Variable in class com.dropbox.client2.session.TokenPair
The "key" portion of the pair.

L

lcPath - Variable in class com.dropbox.client2.DropboxAPI.DeltaEntry
The lower-cased path of the entry.
length() - Method in class com.dropbox.client2.jsonextract.JsonList
 
location - Variable in exception com.dropbox.client2.exception.DropboxServerException
The location string from the headers (to handle redirects).

M

main(String[]) - Static method in class com.dropbox.client2.SdkVersion
 
MAX_UPLOAD_SIZE - Static variable in class com.dropbox.client2.DropboxAPI
The max upload file size that Dropbox servers can handle, in bytes.
mdExtractor - Variable in class com.dropbox.client2.DropboxAPI.DeltaEntry.JsonExtractor
 
media(String, boolean) - Method in class com.dropbox.client2.DropboxAPI
Returns a DropboxAPI.DropboxLink for a stream of the given file path (for streaming media files).
metadata - Variable in class com.dropbox.client2.DropboxAPI.DeltaEntry
If this is null, it means that this path doesn't exist on on Dropbox's copy of the file system.
metadata(String, int, String, boolean, String) - Method in class com.dropbox.client2.DropboxAPI
Returns the metadata for a file, or for a directory and (optionally) its immediate children.
METADATA_DEFAULT_LIMIT - Static variable in class com.dropbox.client2.DropboxAPI
 
mimeType - Variable in class com.dropbox.client2.DropboxAPI.Entry
The file's MIME type.
modified - Variable in class com.dropbox.client2.DropboxAPI.Entry
Last modified date, in "EEE, dd MMM yyyy kk:mm:ss ZZZZZ" form (see RESTUtility#parseDate(String) for parsing this value.
move(String, String) - Method in class com.dropbox.client2.DropboxAPI
Moves a file or folder (and all of the folder's contents) from one path to another.

O

onCreate(Bundle) - Method in class com.dropbox.client2.android.AuthActivity
 
onNewIntent(Intent) - Method in class com.dropbox.client2.android.AuthActivity
 
onProgress(long, long) - Method in class com.dropbox.client2.ProgressListener.Adjusted
 
onProgress(long, long) - Method in class com.dropbox.client2.ProgressListener
Gets called when some bytes have been transferred since the last time it was called and the progress interval has passed.
onResume() - Method in class com.dropbox.client2.android.AuthActivity
 
onSaveInstanceState(Bundle) - Method in class com.dropbox.client2.android.AuthActivity
 
optionalExtract(JsonExtractor<T>) - Method in class com.dropbox.client2.jsonextract.JsonThing
 

P

parentPath() - Method in class com.dropbox.client2.DropboxAPI.Entry
Returns the path of the parent directory if this is a file.
parseAsJSON(HttpResponse) - Static method in class com.dropbox.client2.RESTUtility
Reads in content from an HttpResponse and parses it as JSON.
parseAsQueryString(HttpResponse) - Static method in class com.dropbox.client2.RESTUtility
Reads in content from an HttpResponse and parses it as a query string.
parseDate(String) - Static method in class com.dropbox.client2.RESTUtility
Parses a date/time returned by the Dropbox API.
parsedResponse - Variable in exception com.dropbox.client2.exception.DropboxServerException
 
path - Variable in class com.dropbox.client2.DropboxAPI.Entry
Path to the file from the root.
port - Variable in class com.dropbox.client2.session.Session.ProxyInfo
The port of the proxy, or -1 to use the default port.
progressInterval() - Method in class com.dropbox.client2.ProgressListener.Adjusted
 
progressInterval() - Method in class com.dropbox.client2.ProgressListener
Should return how often transferred bytes should be reported to this listener, in milliseconds.
ProgressListener - Class in com.dropbox.client2
Receives file transfer progress updates for some API calls, e.g.
ProgressListener() - Constructor for class com.dropbox.client2.ProgressListener
 
ProgressListener.Adjusted - Class in com.dropbox.client2
A progress listener that forwards on to another ProgressListener after adjusting the total and bytes.
ProgressListener.Adjusted(ProgressListener, long, long) - Constructor for class com.dropbox.client2.ProgressListener.Adjusted
 
ProgressListener.ProgressHttpEntity - Class in com.dropbox.client2
A wrapper for an HttpEntity that can count the number of bytes transferred.
ProgressListener.ProgressHttpEntity(HttpEntity, ProgressListener) - Constructor for class com.dropbox.client2.ProgressListener.ProgressHttpEntity
 
putFile(String, InputStream, long, String, ProgressListener) - Method in class com.dropbox.client2.DropboxAPI
Uploads a file to Dropbox.
putFileOverwrite(String, InputStream, long, ProgressListener) - Method in class com.dropbox.client2.DropboxAPI
Uploads a file to Dropbox.
putFileOverwriteRequest(String, InputStream, long, ProgressListener) - Method in class com.dropbox.client2.DropboxAPI
Creates a request to upload a file to Dropbox, which you can then upload() or abort().
putFileRequest(String, InputStream, long, String, ProgressListener) - Method in class com.dropbox.client2.DropboxAPI
Creates a request to upload a file to Dropbox, which you can then upload() or abort().

Q

quota - Variable in class com.dropbox.client2.DropboxAPI.Account
The user's quota, in bytes.
quotaNormal - Variable in class com.dropbox.client2.DropboxAPI.Account
The user's quota excluding shared files.
quotaShared - Variable in class com.dropbox.client2.DropboxAPI.Account
The user's quota of shared files.

R

reason - Variable in exception com.dropbox.client2.exception.DropboxServerException
The reason string associated with the error.
referralLink - Variable in class com.dropbox.client2.DropboxAPI.Account
The url the user can give to get referral credit.
request - Variable in class com.dropbox.client2.DropboxAPI.RequestAndResponse
The request
request(RESTUtility.RequestMethod, String, String, int, String[], Session) - Static method in class com.dropbox.client2.RESTUtility
Creates and sends a request to the Dropbox API, parses the response as JSON, and returns the result.
RequestTokenPair - Class in com.dropbox.client2.session
Holds a request token and secret for the web OAuth flow.
RequestTokenPair(String, String) - Constructor for class com.dropbox.client2.session.RequestTokenPair
 
requestTokenPair - Variable in class com.dropbox.client2.session.WebAuthSession.WebAuthInfo
The request token to later use with WebAuthSession.retrieveWebAccessToken(RequestTokenPair).
reset - Variable in class com.dropbox.client2.DropboxAPI.DeltaPage
If true, then you should reset your local state to be an empty folder before processing the list of delta entries.
response - Variable in class com.dropbox.client2.DropboxAPI.RequestAndResponse
The response
restore(String, String) - Method in class com.dropbox.client2.DropboxAPI
Restores a file to a previous rev.
RESTUtility - Class in com.dropbox.client2
This class is mostly used internally by DropboxAPI for creating and executing REST requests to the Dropbox API, and parsing responses.
RESTUtility.RequestMethod - Enum in com.dropbox.client2
 
retrieveWebAccessToken(RequestTokenPair) - Method in class com.dropbox.client2.session.WebAuthSession
When called after the user is done authenticating, sets the user's access token + secret on this session.
rev - Variable in class com.dropbox.client2.DropboxAPI.Entry
Full unique ID for this file's revision.
revisions(String, int) - Method in class com.dropbox.client2.DropboxAPI
Returns a list of metadata for all revs of the path.
root - Variable in class com.dropbox.client2.DropboxAPI.Entry
Name of the root, usually either "dropbox" or "app_folder".

S

SDK_VERSION - Static variable in class com.dropbox.client2.DropboxAPI
The version of this Dropbox SDK.
SdkVersion - Class in com.dropbox.client2
Contains the SDK verison number.
SdkVersion() - Constructor for class com.dropbox.client2.SdkVersion
 
search(String, String, int, boolean) - Method in class com.dropbox.client2.DropboxAPI
Searches a directory for entries matching the query.
secret - Variable in class com.dropbox.client2.session.TokenPair
The "secret" portion of the pair.
server - Variable in exception com.dropbox.client2.exception.DropboxServerException
The server string from the headers.
session - Variable in class com.dropbox.client2.DropboxAPI
 
Session - Interface in com.dropbox.client2.session
Keeps track of a logged in user.
Session.AccessType - Enum in com.dropbox.client2.session
 
Session.ProxyInfo - Class in com.dropbox.client2.session
Describes a proxy.
Session.ProxyInfo(String, int) - Constructor for class com.dropbox.client2.session.Session.ProxyInfo
Creates a proxy info.
Session.ProxyInfo(String) - Constructor for class com.dropbox.client2.session.Session.ProxyInfo
Creates a proxy info using the default port.
setAccessTokenPair(AccessTokenPair) - Method in class com.dropbox.client2.session.AbstractSession
Links the session with the given access token and secret.
setRequestTimeout(HttpUriRequest) - Method in class com.dropbox.client2.session.AbstractSession
Will be called every time right before a request is sent to Dropbox.
setRequestTimeout(HttpUriRequest) - Method in interface com.dropbox.client2.session.Session
Will be called every time right before a request is sent to Dropbox.
share(String) - Method in class com.dropbox.client2.DropboxAPI
Generates a DropboxAPI.DropboxLink for sharing the specified directory or file.
sign(HttpRequest) - Method in class com.dropbox.client2.session.AbstractSession
Signs the request by using's OAuth's HTTP header authorization scheme and the PLAINTEXT signature method.
sign(HttpRequest) - Method in interface com.dropbox.client2.session.Session
OAuth signs the request with the currently-set tokens and secrets.
size - Variable in class com.dropbox.client2.DropboxAPI.Entry
Human-readable (and localized, if possible) description of the file size.
startAuthentication(Context) - Method in class com.dropbox.client2.android.AndroidAuthSession
Starts the Dropbox authentication process by launching an external app (either the Dropbox app if available or a web browser) where the user will log in and allow your app access.
streamRequest(RESTUtility.RequestMethod, String, String, int, String[], Session) - Static method in class com.dropbox.client2.RESTUtility
Creates and sends a request to the Dropbox API, and returns a DropboxAPI.RequestAndResponse containing the HttpUriRequest and HttpResponse.
stringifyBody(BufferedReader) - Static method in exception com.dropbox.client2.exception.DropboxParseException
 

T

thumbExists - Variable in class com.dropbox.client2.DropboxAPI.Entry
Whether a thumbnail for this is available.
toAPISize() - Method in enum com.dropbox.client2.DropboxAPI.ThumbSize
 
TokenPair - Class in com.dropbox.client2.session
Just two strings -- a "key" and a "secret".
TokenPair(String, String) - Constructor for class com.dropbox.client2.session.TokenPair
 
toString() - Method in exception com.dropbox.client2.exception.DropboxServerException
 
toString() - Method in enum com.dropbox.client2.session.Session.AccessType
 
toString() - Method in class com.dropbox.client2.session.TokenPair
 

U

uid - Variable in class com.dropbox.client2.DropboxAPI.Account
The user's account ID.
unexpected() - Method in class com.dropbox.client2.jsonextract.JsonThing
 
unlink() - Method in class com.dropbox.client2.android.AndroidAuthSession
 
unlink() - Method in class com.dropbox.client2.session.AbstractSession
 
unlink() - Method in interface com.dropbox.client2.session.Session
Unlinks the session by removing any stored access token and secret.
upload() - Method in class com.dropbox.client2.DropboxAPI.BasicUploadRequest
Executes the request.
upload() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploader
Convenience wrapper around DropboxAPI.ChunkedUploader.upload(ProgressListener) defaulting to a chunk size of 4 megabytes and no progress listener.
upload(ProgressListener) - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploader
Uploads multiple chunks of data to the server until the upload is complete or an error occurs.
upload() - Method in class com.dropbox.client2.DropboxAPI.ChunkedUploadRequest
Uploads the chunk to Dropbox using /chunked_upload endpoint.
upload() - Method in interface com.dropbox.client2.DropboxAPI.UploadRequest
Executes the request.
url - Variable in class com.dropbox.client2.DropboxAPI.DropboxLink
The url it links to
url - Variable in class com.dropbox.client2.session.WebAuthSession.WebAuthInfo
The URL to redirect the user to.
userError - Variable in class com.dropbox.client2.exception.DropboxServerException.Error
The error in the user's locale, if intended to be displayed to the user.

V

valueOf(String) - Static method in enum com.dropbox.client2.DropboxAPI.ThumbFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.dropbox.client2.DropboxAPI.ThumbSize
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.dropbox.client2.RESTUtility.RequestMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.dropbox.client2.session.Session.AccessType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.dropbox.client2.DropboxAPI.ThumbFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.dropbox.client2.DropboxAPI.ThumbSize
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.dropbox.client2.RESTUtility.RequestMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.dropbox.client2.session.Session.AccessType
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION - Static variable in class com.dropbox.client2.DropboxAPI
The version of the API that this code uses.

W

WebAuthSession - Class in com.dropbox.client2.session
Keeps track of a logged in user contains configuration options for the DropboxAPI.
WebAuthSession(AppKeyPair, Session.AccessType) - Constructor for class com.dropbox.client2.session.WebAuthSession
Creates a new web auth session with the given app key pair and access type.
WebAuthSession(AppKeyPair, Session.AccessType, AccessTokenPair) - Constructor for class com.dropbox.client2.session.WebAuthSession
Creates a new web auth session with the given app key pair and access type.
WebAuthSession.WebAuthInfo - Class in com.dropbox.client2.session
Contains the info needed to send the user to the Dropbox web auth page and later retrieve an access token + secret.
writeTo(OutputStream) - Method in class com.dropbox.client2.ProgressListener.ProgressHttpEntity
 

_

_200_OK - Static variable in exception com.dropbox.client2.exception.DropboxServerException
The request was successful.
_206_PARTIAL_CONTENT - Static variable in exception com.dropbox.client2.exception.DropboxServerException
The request was successful for a Range request.
_302_FOUND - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Moved to a new location temporarily.
_304_NOT_MODIFIED - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Contents have not changed (from the given hash, revision, ETag, or similar parameter).
_400_BAD_REQUEST - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Bad input parameter.
_401_UNAUTHORIZED - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Bad or expired access token.
_403_FORBIDDEN - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Usually from an invalid app key pair or other permanent error.
_404_NOT_FOUND - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Path not found.
_405_METHOD_NOT_ALLOWED - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Request method not allowed.
_406_NOT_ACCEPTABLE - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Too many metadata entries to return.
_409_CONFLICT - Static variable in exception com.dropbox.client2.exception.DropboxServerException
 
_411_LENGTH_REQUIRED - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Typically from trying to upload over HTTP using chunked encoding.
_415_UNSUPPORTED_MEDIA - Static variable in exception com.dropbox.client2.exception.DropboxServerException
When a thumbnail cannot be created for the input file.
_500_INTERNAL_SERVER_ERROR - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Internal server error.
_501_NOT_IMPLEMENTED - Static variable in exception com.dropbox.client2.exception.DropboxServerException
Not implemented.
_502_BAD_GATEWAY - Static variable in exception com.dropbox.client2.exception.DropboxServerException
If a Dropbox server is down - try again later.
_503_SERVICE_UNAVAILABLE - Static variable in exception com.dropbox.client2.exception.DropboxServerException
If a Dropbox server is not working properly - try again later.
_507_INSUFFICIENT_STORAGE - Static variable in exception com.dropbox.client2.exception.DropboxServerException
User is over quota.

A B C D E F G H I J K L M O P Q R S T U V W _