|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use DropboxException | |
|---|---|
| com.dropbox.client2 | |
| com.dropbox.client2.exception | |
| com.dropbox.client2.session | |
| Uses of DropboxException in com.dropbox.client2 |
|---|
| Methods in com.dropbox.client2 that throw DropboxException | |
|---|---|
DropboxAPI.Account |
DropboxAPI.accountInfo()
Returns the DropboxAPI.Account associated with the current Session. |
DropboxAPI.Entry |
DropboxAPI.addFromCopyRef(String sourceCopyRef,
String targetPath)
Creates a file in the Dropbox that the client is currently connected to, using the contents from a CopyRef created with
createCopyRef(). |
DropboxAPI.Entry |
DropboxAPI.copy(String fromPath,
String toPath)
Copies a file or folder (and all of the folder's contents) from one path to another. |
DropboxAPI.CreatedCopyRef |
DropboxAPI.createCopyRef(String sourcePath)
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. |
DropboxAPI.Entry |
DropboxAPI.createFolder(String path)
Creates a new Dropbox folder. |
void |
DropboxAPI.delete(String path)
Deletes a file or folder (and all of the folder's contents). |
DropboxAPI.DeltaPage<DropboxAPI.Entry> |
DropboxAPI.delta(String cursor)
A way of letting you keep up with changes to files and folders in a user's Dropbox. |
static org.apache.http.HttpResponse |
RESTUtility.execute(Session session,
org.apache.http.client.methods.HttpUriRequest req)
Executes an HttpUriRequest with the given Session and
returns an HttpResponse. |
static org.apache.http.HttpResponse |
RESTUtility.execute(Session session,
org.apache.http.client.methods.HttpUriRequest req,
int socketTimeoutOverrideMs)
Executes an HttpUriRequest with the given Session and
returns an HttpResponse. |
DropboxAPI.DropboxFileInfo |
DropboxAPI.getFile(String path,
String rev,
OutputStream os,
ProgressListener listener)
Downloads a file from Dropbox, copying it to the output stream. |
DropboxAPI.DropboxInputStream |
DropboxAPI.getFileStream(String path,
String rev)
Downloads a file from Dropbox. |
DropboxAPI.DropboxFileInfo |
DropboxAPI.getThumbnail(String path,
OutputStream os,
DropboxAPI.ThumbSize size,
DropboxAPI.ThumbFormat format,
ProgressListener listener)
Downloads a thumbnail from Dropbox, copying it to the output stream. |
DropboxAPI.DropboxInputStream |
DropboxAPI.getThumbnailStream(String path,
DropboxAPI.ThumbSize size,
DropboxAPI.ThumbFormat format)
Downloads a thumbnail from Dropbox. |
DropboxAPI.DropboxLink |
DropboxAPI.media(String path,
boolean ssl)
Returns a DropboxAPI.DropboxLink for a stream of the given file path (for
streaming media files). |
DropboxAPI.Entry |
DropboxAPI.metadata(String path,
int fileLimit,
String hash,
boolean list,
String rev)
Returns the metadata for a file, or for a directory and (optionally) its immediate children. |
DropboxAPI.Entry |
DropboxAPI.move(String fromPath,
String toPath)
Moves a file or folder (and all of the folder's contents) from one path to another. |
static Object |
RESTUtility.parseAsJSON(org.apache.http.HttpResponse response)
Reads in content from an HttpResponse and parses it as JSON. |
static Map<String,String> |
RESTUtility.parseAsQueryString(org.apache.http.HttpResponse response)
Reads in content from an HttpResponse and parses it as a query
string. |
DropboxAPI.Entry |
DropboxAPI.putFile(String path,
InputStream is,
long length,
String parentRev,
ProgressListener listener)
Uploads a file to Dropbox. |
DropboxAPI.Entry |
DropboxAPI.putFileOverwrite(String path,
InputStream is,
long length,
ProgressListener listener)
Uploads a file to Dropbox. |
DropboxAPI.UploadRequest |
DropboxAPI.putFileOverwriteRequest(String path,
InputStream is,
long length,
ProgressListener listener)
Creates a request to upload a file to Dropbox, which you can then upload() or abort(). |
DropboxAPI.UploadRequest |
DropboxAPI.putFileRequest(String path,
InputStream is,
long length,
String parentRev,
ProgressListener listener)
Creates a request to upload a file to Dropbox, which you can then upload() or abort(). |
static Object |
RESTUtility.request(RESTUtility.RequestMethod method,
String host,
String path,
int apiVersion,
String[] params,
Session session)
Creates and sends a request to the Dropbox API, parses the response as JSON, and returns the result. |
DropboxAPI.Entry |
DropboxAPI.restore(String path,
String rev)
Restores a file to a previous rev. |
List<DropboxAPI.Entry> |
DropboxAPI.revisions(String path,
int revLimit)
Returns a list of metadata for all revs of the path. |
List<DropboxAPI.Entry> |
DropboxAPI.search(String path,
String query,
int fileLimit,
boolean includeDeleted)
Searches a directory for entries matching the query. |
DropboxAPI.DropboxLink |
DropboxAPI.share(String path)
Generates a DropboxAPI.DropboxLink for sharing the specified directory or
file. |
static DropboxAPI.RequestAndResponse |
RESTUtility.streamRequest(RESTUtility.RequestMethod method,
String host,
String path,
int apiVersion,
String[] params,
Session session)
Creates and sends a request to the Dropbox API, and returns a DropboxAPI.RequestAndResponse containing the HttpUriRequest and
HttpResponse. |
DropboxAPI.Entry |
DropboxAPI.UploadRequest.upload()
Executes the request. |
DropboxAPI.Entry |
DropboxAPI.BasicUploadRequest.upload()
Executes the request. |
| Constructors in com.dropbox.client2 that throw DropboxException | |
|---|---|
DropboxAPI.DropboxInputStream(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.HttpResponse response)
|
|
| Uses of DropboxException in com.dropbox.client2.exception |
|---|
| Subclasses of DropboxException in com.dropbox.client2.exception | |
|---|---|
class |
DropboxFileSizeException
Thrown when trying to upload a file larger than the API can handle. |
class |
DropboxIOException
Encapsulates an IOExceptions when using the API, typically resulting from network-related issues. |
class |
DropboxLocalStorageFullException
Thrown when writing to local storage and there is no more room. |
class |
DropboxParseException
Indicates there was trouble parsing a response from Dropbox. |
class |
DropboxPartialFileException
Used when only part of a file was transferred to/from Dropbox when using the API. |
class |
DropboxServerException
Wraps any non-200 HTTP responses from an API call. |
class |
DropboxSSLException
Wraps any SSL-related exceptions thrown when using the API. |
class |
DropboxUnlinkedException
Thrown when the API can only be used when linked but it's not. |
| Uses of DropboxException in com.dropbox.client2.session |
|---|
| Methods in com.dropbox.client2.session that throw DropboxException | |
|---|---|
WebAuthSession.WebAuthInfo |
WebAuthSession.getAuthInfo()
Starts an authentication request with Dropbox servers and gets all the info you need to start authenticating a user. |
WebAuthSession.WebAuthInfo |
WebAuthSession.getAuthInfo(String callbackUrl)
Starts an authentication request with Dropbox servers and gets all the info you need to start authenticating a user. |
String |
WebAuthSession.retrieveWebAccessToken(RequestTokenPair requestTokenPair)
When called after the user is done authenticating, sets the user's access token + secret on this session. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||