You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2014/07/08 15:19:29 UTC
svn commit: r915485 - in /websites/production/camel/content:
cache/main.pageCache dropbox.html
Author: buildbot
Date: Tue Jul 8 13:19:28 2014
New Revision: 915485
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/dropbox.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/dropbox.html
==============================================================================
--- websites/production/camel/content/dropbox.html (original)
+++ websites/production/camel/content/dropbox.html Tue Jul 8 13:19:28 2014
@@ -110,9 +110,23 @@
</div><h3 id="Dropbox-Get(download)operation">Get (download) operation</h3><p>Download files from Dropbox.</p><p>Works as Camel producer or Camel consumer.</p><p>Below are listed the options for this operation:</p><div class="confluenceTableSmall">
<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Mandatory </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>remotePath</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Folder or file to download from Dropbox </p></td></tr></tbody></table>
</div><h4 id="Dropbox-Samples.1">Samples</h4><p>from("direct:start").to("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1/file1.tar.gz").to("file:///home/kermit/?fileName=file1.tar.gz");</p><p>from("direct:start").to("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1").to("mock:result");</p><p>from("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1").to("file:///home/kermit/");</p><h4 id="Dropbox-ResultMessageHeaders.1">Result Message Headers</h4><p>The following headers are set on message result:</p><div class="confluenceTableSmall">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Value </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>DELETED_PATH</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> name of the path deleted on dropbox </p></td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Value </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>DOWNLOADED_FILE</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> in case of single file download, path of the remote file downloaded </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>DOWNLOADED_FILES</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> in case of multiple files download, path of the remote files downloaded </p></td></tr></tbody></table>
</div><h4 id="Dropbox-ResultMessageBody.1"><span>Result Message Body</span></h4><p>The following objects are set on message body result:</p><div class="confluenceTableSmall">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Object type </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> name of the path deleted on dropbox </p></td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Object type </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>ByteArrayOutputStream</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> in case of single file download, stream representing the file downloaded </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>Map<String, ByteArrayOutputStream></code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 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 </p></td></tr></tbody></table>
+</div><h3 id="Dropbox-Moveoperation">Move operation</h3><p>Move files on Dropbox between one folder to another.</p><p>Works only as Camel producer.</p><p>Below are listed the options for this operation:</p><div class="confluenceTableSmall">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Mandatory </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>remotePath</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Original file or folder to move </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>newRemotePath</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Destination file or folder </p></td></tr></tbody></table>
+</div><h4 id="Dropbox-Samples.2">Samples</h4><p>from("direct:start").to("dropbox://move?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1&newRemotePath=/root/folder2").to("mock:result");</p><h4 id="Dropbox-ResultMessageHeaders.2">Result Message Headers</h4><p>The following headers are set on message result:</p><div class="confluenceTableSmall">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Value </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>MOVED_PATH</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> name of the path moved on dropbox </p></td></tr></tbody></table>
+</div><h4 id="Dropbox-ResultMessageBody.2"><span>Result Message Body</span></h4><p>The following objects are set on message body result:</p><div class="confluenceTableSmall">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Object type </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> name of the path moved on dropbox </p></td></tr></tbody></table>
+</div><h3 id="Dropbox-Put(upload)operation">Put (upload) operation</h3><p>Upload files on Dropbox.</p><p>Works as Camel producer.</p><p>Below are listed the options for this operation:</p><div class="confluenceTableSmall">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Mandatory </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>uploadMode</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> add or force this option specifies how a file should be saved on dropbox:<br clear="none">
+in case of "add" the new file will be renamed if a file with the same name already exists on dropbox.<br clear="none">
+in case of "force" if a file with the same name already exists on dropbox, this will be overwritten.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>localPath</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Folder or file to upload on Dropbox from the local filesystem .</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>remotePath</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Folder destination on Dropbox. If the property is not set, the component will upload the file on a remote path equal to the local path. </p></td></tr></tbody></table>
+</div><h4 id="Dropbox-Samples.3">Samples</h4><p>from("direct:start").to("dropbox://put?accessToken=XXX&clientIdentifier=XXX&uploadMode=add&localPath=/root/folder1").to("mock:result");</p><p>from("direct:start").to("dropbox://put?accessToken=XXX&clientIdentifier=XXX&uploadMode=add&localPath=/root/folder1&remotePath=/root/folder2").to("mock:result");</p><h4 id="Dropbox-ResultMessageHeaders.3">Result Message Headers</h4><p>The following headers are set on message result:</p><div class="confluenceTableSmall">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Value </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>UPLOADED_FILE</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> in case of single file upload, path of the remote path uploaded </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>UPLOADED_FILES</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> in case of multiple files upload, string with the remote paths uploaded </p></td></tr></tbody></table>
+</div><h4 id="Dropbox-ResultMessageBody.3">Result Message Body</h4><p>The following objects are set on message body result:</p><div class="confluenceTableSmall">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Object type </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> in case of single file upload, result of the upload operation, OK or KO </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>Map<String, DropboxResultCode></code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> in case of multiple files upload, a map with as key the path of the remote file uploaded and as value the result of the upload operation, OK or KO </p></td></tr></tbody></table>
</div></div>
</td>
<td valign="top">