[ 
https://issues.apache.org/jira/browse/CAMEL-16484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617628#comment-17617628
 ] 

Nicolas Filotto edited comment on CAMEL-16484 at 10/14/22 10:22 AM:
--------------------------------------------------------------------

The related PR  for Karaf https://github.com/apache/camel-karaf/pull/199

Tested successfully with the next routes:

{code:java}
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
           
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0";
           xsi:schemaLocation="
             http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 
http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
             http://www.osgi.org/xmlns/blueprint/v1.0.0 
https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>

  <!-- blueprint property placeholders, that will use etc/dropbox.cfg as the 
properties file -->
  <cm:property-placeholder persistent-id="dropbox" update-strategy="reload">

  </cm:property-placeholder>
  
    <camelContext xmlns="http://camel.apache.org/schema/blueprint";>
        <route>
            <from uri="timer:myTimer?period=10000" />
            <setBody><simple>Hello from timer at 
${header.firedTime}</simple></setBody>
            <setHeader name="CamelDropboxUploadMode">
                <constant>force</constant>
            </setHeader>
            <to 
uri="dropbox://put?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath={{workDir}}/file.txt"
 />
            <log message="After put ${body}"/>
            <to 
uri="dropbox://get?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath={{workDir}}/file.txt"
 />
            <log message="After get ${body}"/>
            <to 
uri="dropbox://move?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath={{workDir}}/file.txt&amp;newRemotePath={{workDir}}-new/file.txt"
 />
            <log message="After move ${body}"/>
            <to 
uri="dropbox://search?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath=/camel-test2&amp;query=index"
 />
            <log message="After search ${body}"/>
            <to 
uri="dropbox://del?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath={{workDir}}-new/file.txt"
 />
            <log message="After del ${body}"/>
        </route>
        <route>
            <from 
uri="dropbox://get?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath=/camel-test2/index.md"
 />
            <log message="After get consumer ${body}"/>
        </route>        
        <route>
            <from 
uri="dropbox://search?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath=/camel-test2&amp;query=index"
 />
            <log message="After search consumer ${body}"/>
        </route>        
    </camelContext>

</blueprint>
{code}



was (Author: JIRAUSER285918):
The related PR  for Karaf https://github.com/apache/camel-karaf/pull/199

> Camel-Dropbox: Bump to Dropbox-core 5.x
> ---------------------------------------
>
>                 Key: CAMEL-16484
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16484
>             Project: Camel
>          Issue Type: Dependency upgrade
>          Components: camel-dropbox
>            Reporter: Andrea Cosentino
>            Assignee: Nicolas Filotto
>            Priority: Major
>             Fix For: 3.20.0
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to