Class DropboxConfiguration
- java.lang.Object
-
- org.apache.camel.component.dropbox.DropboxConfiguration
-
@UriParams public class DropboxConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description DropboxConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createClient()
Obtain a new instance of DbxClient and store it in configuration.String
getAccessToken()
com.dropbox.core.v2.DbxClientV2
getClient()
String
getClientIdentifier()
String
getLocalPath()
String
getNewRemotePath()
DropboxOperation
getOperation()
String
getQuery()
String
getRemotePath()
DropboxUploadMode
getUploadMode()
void
setAccessToken(String accessToken)
The access token to make API requests for a specific Dropbox uservoid
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
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
setQuery(String query)
A space-separated list of sub-strings to search for.void
setRemotePath(String remotePath)
Original file or folder to movevoid
setUploadMode(DropboxUploadMode uploadMode)
Which mode to upload.
-
-
-
Method Detail
-
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
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
The access token to make API requests for a specific Dropbox user
-
getLocalPath
public String getLocalPath()
-
setLocalPath
public void setLocalPath(String localPath)
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
public String getRemotePath()
-
setRemotePath
public void setRemotePath(String remotePath)
Original file or folder to move
-
getNewRemotePath
public String getNewRemotePath()
-
setNewRemotePath
public void setNewRemotePath(String newRemotePath)
Destination file or folder
-
getQuery
public String getQuery()
-
setQuery
public void setQuery(String query)
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
public String getClientIdentifier()
-
setClientIdentifier
public void setClientIdentifier(String clientIdentifier)
Name of the app registered to make API requests
-
getOperation
public DropboxOperation getOperation()
-
setOperation
public void setOperation(DropboxOperation operation)
The specific action (typically is a CRUD action) to perform on Dropbox remote folder.
-
getUploadMode
public DropboxUploadMode getUploadMode()
-
setUploadMode
public void setUploadMode(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.
-
-