Class DropboxConfiguration
java.lang.Object
org.apache.camel.component.dropbox.DropboxConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidObtain a new instance of DbxClient and store it in configuration.The apiSecret to make API requests for a specific Dropbox usercom.dropbox.core.v2.DbxClientV2The expire time to access token for a specific Dropbox usergetQuery()voidsetAccessToken(String accessToken) The access token to make API requests for a specific Dropbox uservoidThe apiKey to make API requests for a specific Dropbox uservoidsetApiSecret(String apiSecret) voidsetClient(com.dropbox.core.v2.DbxClientV2 client) To use an existing DbxClient instance as Dropbox client.voidsetClientIdentifier(String clientIdentifier) Name of the app registered to make API requestsvoidsetExpireIn(Long expireIn) voidsetLocalPath(String localPath) Optional folder or file to upload on Dropbox from the local filesystem.voidsetNewRemotePath(String newRemotePath) Destination file or foldervoidsetOperation(DropboxOperation operation) The specific action (typically is a CRUD action) to perform on Dropbox remote folder.voidA space-separated list of sub-strings to search for.voidsetRefreshToken(String refreshToken) The refresh token to refresh the access token for a specific Dropbox uservoidsetRemotePath(String remotePath) Original file or folder to movevoidsetUploadMode(DropboxUploadMode uploadMode) 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.
-
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.
-