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 16:19:39 UTC
svn commit: r915490 - in /websites/production/camel/content:
cache/main.pageCache dropbox.html
Author: buildbot
Date: Tue Jul 8 14:19:39 2014
New Revision: 915490
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 14:19:39 2014
@@ -99,7 +99,7 @@
]]></script>
</div></div><p>Where <strong>operation</strong> is the specific action (typically is a CRUD action) to perform on Dropbox remote folder.</p><h3 id="Dropbox-Operation">Operation </h3><div class="confluenceTableSmall">
<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p> Operation </p></th><th colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>del</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> deletes files or directories on Dropbox</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>get</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> download files from Dropbox </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>move</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> move files from folders on Dropbox </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>put</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> upload files on Dropbox </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>search</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> search files on Dropbox based on string queries </p></td></tr></tbody></table>
-</div><p><strong>Operations</strong> require additional options to work, some are mandatory for the specific operation.</p><h3 id="Dropbox-Options">Options</h3><p>In order to work with Dropbox API you need to obtain an <strong>accessToken</strong> and a <strong>clientIdentifier</strong><br clear="none">You can refer to the <a shape="rect" class="external-link" href="https://www.dropbox.com/developers/core/start/java" rel="nofollow">Dropbox documentation</a> that expalins how to get them <span style="line-height: 1.4285715;"> </span></p><p>Below are listed the mandatory options for all operations:</p><p> </p><div class="confluenceTableSmall">
+</div><p><strong>Operations</strong> require additional options to work, some are mandatory for the specific operation.</p><h3 id="Dropbox-Options">Options</h3><p>In order to work with Dropbox API you need to obtain an <strong>accessToken</strong> and a <strong>clientIdentifier.</strong><br clear="none">You can refer to the <a shape="rect" class="external-link" href="https://www.dropbox.com/developers/core/start/java" rel="nofollow">Dropbox documentation</a> that expalins how to get them. <span style="line-height: 1.4285715;"> </span></p><p>Below are listed the mandatory options for all operations:</p><p> </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>accessToken</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The access token to make API requests for a specific Dropbox user </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>clientIdentifier</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Name of the app registered to make API requests </p></td></tr></tbody></table>
</div><h3 id="Dropbox-Deloperation">Del operation</h3><p>Delete files on Dropbox.</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> Folder or file to delete on Dropbox </p></td></tr></tbody></table>
@@ -127,6 +127,14 @@ in case of "force" if a file with the sa
<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><h3 id="Dropbox-Searchoperation">Search operation</h3><p>Search inside a remote Dropbox folder including its sub directories.</p><p>Works as Camel producer and as 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 on Dropbox where to search in. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>query</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> A space-separated list of substrings to search for. A file matches only if it contains all the substrings. If this option is not set, all files will be matched. </p></td></tr></tbody></table>
+</div><h4 id="Dropbox-Samples.4">Samples</h4><p>from("dropbox://search?accessToken=XXX&clientIdentifier=XXX&remotePath=/XXX&query=XXX").to("mock:result");</p><p>from("direct:start").to("dropbox://search?accessToken=XXX&clientIdentifier=XXX&remotePath=/XXX").to("mock:result");</p><h4 id="Dropbox-ResultMessageHeaders.4">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>FOUNDED_FILES</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> list of file path founded </p></td></tr></tbody></table>
+</div><h4 id="Dropbox-ResultMessageBody.4">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>List<DbxEntry></code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> list of file path founded. For more information on this object refer to Dropbox documentation, </p>
+<a shape="rect" class="external-link" href="http://dropbox.github.io/dropbox-sdk-java/api-docs/v1.7.x/com/dropbox/core/DbxEntry.html" rel="nofollow">http://dropbox.github.io/dropbox-sdk-java/api-docs/v1.7.x/com/dropbox/core/DbxEntry.html</a>
+<p> </p></td></tr></tbody></table>
</div></div>
</td>
<td valign="top">