...
Wiki Markup |
---|
{div:class=confluenceTableSmall} || Object type || Description || | {{String}} | name of the path moved on dropbox | {div} |
Put (upload) operation
Upload files on Dropbox.
Works as Camel producer.
Below are listed the options for this operation:
Wiki Markup |
---|
{div:class=confluenceTableSmall}
|| Property || Mandatory || Description ||
| {{uploadMode}} | {{true}} | add|force this option specifies how a file should be saved on dropbox:
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.
| {{localPath}} | {{true}} | Folder or file to upload on Dropbox from the local filesystem |
| {{remotePath}} | {{false}} | Folder destination on Dropbox |
{div} |
Samples
from("direct:start").to("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1/file1.tar.gz").to("file:///home/kermit/?fileName=file1.tar.gz");
from("direct:start").to("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1").to("mock:result");
from("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1").to("file:///home/kermit/");
Result Message Headers
The following headers are set on message result:
Wiki Markup |
---|
{div:class=confluenceTableSmall}
|| Property || Value ||
| {{DOWNLOADED_FILE}} | in case of single file download, path of the remote file downloaded |
| {{DOWNLOADED_FILES}} | in case of multiple files download, path of the remote files downloaded |
{div} |
Result Message Body
The following objects are set on message body result:
Wiki Markup |
---|
{div:class=confluenceTableSmall}
|| Object type || Description ||
| {{ByteArrayOutputStream}} | in case of single file download, stream representing the file downloaded |
| {{Map<String, ByteArrayOutputStream>}} | in case of multiple files download, a map with as key the path of the remote file downloaded and as value the stream representing the file downloaded |
{div} |