Class DropboxConfiguration
java.lang.Object
org.apache.camel.component.dropbox.DropboxConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Obtain a new instance of DbxClient and store it in configuration.The apiSecret to make API requests for a specific Dropbox usercom.dropbox.core.v2.DbxClientV2
The expire time to access token for a specific Dropbox usergetQuery()
void
setAccessToken
(String accessToken) The access token to make API requests for a specific Dropbox uservoid
The apiKey to make API requests for a specific Dropbox uservoid
setApiSecret
(String apiSecret) void
setClient
(com.dropbox.core.v2.DbxClientV2 client) To use an existing DbxClient instance as Dropbox client.void
setClientIdentifier
(String clientIdentifier) Name of the app registered to make API requestsvoid
setExpireIn
(Long expireIn) void
setLocalPath
(String localPath) Optional folder or file to upload on Dropbox from the local filesystem.void
setNewRemotePath
(String newRemotePath) Destination file or foldervoid
setOperation
(DropboxOperation operation) The specific action (typically is a CRUD action) to perform on Dropbox remote folder.void
A space-separated list of sub-strings to search for.void
setRefreshToken
(String refreshToken) The refresh token to refresh the access token for a specific Dropbox uservoid
setRemotePath
(String remotePath) Original file or folder to movevoid
setUploadMode
(DropboxUploadMode uploadMode) Which mode to upload.
-
Constructor Details
-
DropboxConfiguration
public DropboxConfiguration()
-
-
Method Details
-
setClient
public void setClient(com.dropbox.core.v2.DbxClientV2 client) To use an existing DbxClient instance as Dropbox client. -
getClient
public com.dropbox.core.v2.DbxClientV2 getClient() -
createClient
public void createClient()Obtain a new instance of DbxClient and store it in configuration. -
getAccessToken
-
setAccessToken
The access token to make API requests for a specific Dropbox user -
getLocalPath
-
getRefreshToken
-
setRefreshToken
The refresh token to refresh the access token for a specific Dropbox user -
getApiKey
-
setApiKey
The apiKey to make API requests for a specific Dropbox user -
getApiSecret
The apiSecret to make API requests for a specific Dropbox user -
setApiSecret
-
getExpireIn
The expire time to access token for a specific Dropbox user -
setExpireIn
-
setLocalPath
Optional folder or file to upload on Dropbox from the local filesystem. If this option has not been configured then the message body is used as the content to upload. -
getRemotePath
-
setRemotePath
Original file or folder to move -
getNewRemotePath
-
setNewRemotePath
Destination file or folder -
getQuery
-
setQuery
A space-separated list of sub-strings to search for. A file matches only if it contains all the sub-strings. If this option is not set, all files will be matched. -
getClientIdentifier
-
setClientIdentifier
Name of the app registered to make API requests -
getOperation
-
setOperation
The specific action (typically is a CRUD action) to perform on Dropbox remote folder. -
getUploadMode
-
setUploadMode
Which mode to upload. in case of "add" the new file will be renamed if a file with the same name already exists on dropbox. in case of "force" if a file with the same name already exists on dropbox, this will be overwritten.
-