FTP 到 FTPS 的路由器使用 TSL/SSL 在 Java 的 Apache Camel 中显式进行安全连接

FTP router to FTPS for secure connection using TSL/SSL explicit in Apache Camel in Java

我有以下现有的 ftp 配置,我希望它成为 ftp 的配置

@Override
public void configure() throws Exception {

    DataFormat bindy = new BindyCsvDataFormat("com.fileprocessor");

    from("ftp://" + ftpServer + "/" + ftpDir + "?username=" + ftpUser + "&password=" + ftpPass
            + "&passiveMode=true&delete=true&delay=10000")
            .to("file:" + localDir);
    from("file:" + localDir + "?move=" + localDirPassed + "&moveFailed=" + localDirError)
            .unmarshal(bindy)
            .process(dwsProcessor);
}

那么你认为我需要在这个 configure() 中做哪些更改
注意 :configure() 方法来自 RouteBuilder class

Apache Camel documentation for FTP/SFTP/FTPS Component 所示,FTP 和 FTPS 的语法相同,只是将 ftp:// 替换为 ftps://:

ftp://[username@]hostname[:port]/directoryname[?options] 
ftps://[username@]hostname[:port]/directoryname[?options]

Camel 默认使用显式模式:

isImplicit ... FTPS only: Sets the security mode(implicit/explicit). Default is explicit (false).