110.13. 샘플

아래 샘플에서는 Camel을 설정하여 1분마다 FTP 서버의 모든 보고서를 BINARY 콘텐츠로 한 번 다운로드하여 로컬 파일 시스템에 파일로 저장합니다.

그리고 Spring DSL을 사용하는 경로:

  <route>
     <from uri="ftp://scott@localhost/public/reports?password=tiger&amp;binary=true&amp;delay=60000"/>
     <to uri="file://target/test-reports"/>
  </route>

110.13.1. 원격 FTPS 서버(implicit SSL) 및 클라이언트 인증 사용

from("ftps://admin@localhost:2222/public/camel?password=admin&securityProtocol=SSL&isImplicit=true
      &ftpClient.keyStore.file=./src/test/resources/server.jks
      &ftpClient.keyStore.password=password&ftpClient.keyStore.keyPassword=password")
  .to("bean:foo");