Author: buildbot Date: Wed Aug 23 23:43:53 2017 New Revision: 1017200 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 Wed Aug 23 23:43:53 2017 @@ -129,7 +129,7 @@ <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"><div class="table-wrap"><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></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"><div class="table-wrap"><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 dropb ox, 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></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"><div class="table-wrap"><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 dropb ox, 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><p><strong>Note:</strong> You can only omit remotePath if you are under Linux/Unix and only is localPath is absolute. With Windows or without an absolute <br clear="none">localPath you may run into an exception like the following:</p><pre>"Caused by: java.lang.IllegalArgumentException: 'path': bad pat h: must start with "/": "C:/My/File" <br clear="none">OR  </pre><pre>"Caused by: java.lang.IllegalArgumentException: 'path': bad path: must start with "/": "MyFile""</pre></td></tr></tbody></table></div></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"><div class="table-wrap"><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></div>