public final class DropboxAPIFacade extends Object
Modifier and Type | Method and Description |
---|---|
DropboxResult |
del(String remotePath)
Delete every files and subdirectories inside the remote directory.
|
DropboxResult |
get(String remotePath)
Get the content of every file inside the remote path.
|
static DropboxAPIFacade |
getInstance(com.dropbox.core.DbxClient client)
Return a singleton instance of this class
|
DropboxResult |
move(String remotePath,
String newRemotePath)
Rename a remote path with the new path location.
|
DropboxResult |
put(String localPath,
String remotePath,
DropboxUploadMode mode)
Put or upload a new file or an entire directory to dropbox
|
DropboxResult |
search(String remotePath,
String query)
Search inside a remote path including its sub directories.
|
public static DropboxAPIFacade getInstance(com.dropbox.core.DbxClient client)
client
- the DbxClient performing dropbox low level operationspublic DropboxResult put(String localPath, String remotePath, DropboxUploadMode mode) throws DropboxException
localPath
- the file path or the dir path on the local filesystemremotePath
- the remote path destination on dropboxmode
- how a file should be saved on dropbox;
in case of "add" the new file will be renamed in case
a file with the same name already exists on dropbox.
in case of "force" the file already existing with the same name will be overridden.DropboxException
public DropboxResult search(String remotePath, String query) throws DropboxException
remotePath
- the remote path where starting the search fromquery
- a space-separated list of substrings to search for. A file matches only if it contains all the substringsDropboxException
public DropboxResult del(String remotePath) throws DropboxException
remotePath
- the remote location to deleteDropboxException
public DropboxResult move(String remotePath, String newRemotePath) throws DropboxException
remotePath
- the existing remote path to be renamednewRemotePath
- the new remote path substituting the old oneDropboxException
public DropboxResult get(String remotePath) throws DropboxException
remotePath
- the remote path where to download fromDropboxException
Apache Camel