22.16. サンプル
以下の例では、すべてのレポートを 1 時間ごとに 1 回(60 分) BINARY コンテンツとしてダウンロードし、ローカルファイルシステムにファイルとして保存するように Camel を設定します。
XML DSL を使用したルートは以下のようになります。
<route>
<from uri="ftp://scott@localhost/public/reports?password=tiger&binary=true&delay=60000"/>
<to uri="file://target/test-reports"/>
</route>
<route>
<from uri="ftp://scott@localhost/public/reports?password=tiger&binary=true&delay=60000"/>
<to uri="file://target/test-reports"/>
</route>
22.16.1. リモート FTPS サーバー(暗黙的な SSL)およびクライアント認証の使用 リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
from("ftps://admin@localhost:2222/public/camel?password=admin&securityProtocol=SSL&implicit=true
&ftpClient.keyStore.file=./src/test/resources/server.jks
&ftpClient.keyStore.password=password&ftpClient.keyStore.keyPassword=password")
.to("bean:foo");
from("ftps://admin@localhost:2222/public/camel?password=admin&securityProtocol=SSL&implicit=true
&ftpClient.keyStore.file=./src/test/resources/server.jks
&ftpClient.keyStore.password=password&ftpClient.keyStore.keyPassword=password")
.to("bean:foo");