简体   繁体   English

使用Java的Apache Camel中明确使用TSL / SSL的FTP路由器到FTPS的安全连接

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

I have following existing ftp configuration and I want it to make as ftps configuration 我有以下现有的ftp配置,我希望它成为ftps配置

@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);
}

so what are the changes do you think I need to make in this configure() 那么您认为我需要在此configure()中进行哪些更改?
note :configure() method is from RouteBuilder class 注意::configure()方法来自RouteBuilder类

As Apache Camel documentation for FTP/SFTP/FTPS Component shows, syntax for FTP and FTPS is identical, except that you replace ftp:// with ftps:// : 正如Apache Camel关于FTP / SFTP / FTPS Component的文档所示,FTP和FTPS的语法相同,只是用ftps://代替了ftp:// ftps://

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

Explicit mode is default in Camel: 骆驼默认为显式模式:

isImplicit ... FTPS only: Sets the security mode(implicit/explicit). isImplicit ...仅FTPS:设置安全模式(隐式/显式)。 Default is explicit ( false ). 默认值是显式的false )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Apache Camel 3.0.1 无法启动并消耗路由器到 FTPs 文件夹 - Apache Camel 3.0.1 can not start and consuming router to FTPs folder 我无法使用具有自定义SSLContext的Apache FTPSClient通过FTPS连接到FTP服务器-获取“无法识别的SSL消息,纯文本连接?” - I cannot connect to my FTP server by FTPS with Apache FTPSClient with custom SSLContext - getting “Unrecognized SSL message, plaintext connection?” 如何在 Java 中通过 TLS/SSL (FTPS) 服务器连接到 FTP - How to connect to FTP over TLS/SSL (FTPS) server in Java 使用 Java 建立到 MySQL Amazon RDS (SSL/TLS) 的安全连接 - Using Java to establish a secure connection to MySQL Amazon RDS (SSL/TLS) Java中基于TLS / SSL(FTPS-隐式)服务器的Java FTP-若干错误 - Java FTP over TLS/SSL (FTPS- Implicit) Server in Java - Several Error 使用Apache骆驼的Jms Connection - Jms Connection using Apache camel 打开连接后,使用与标准ftp / sftp相同的java的FTPS连接构建器 - FTPS Connection builder with java that uses the same as standard ftp/sftp after connection is open Apache Camel:带计划程序的FTP文件(目录为空时关闭连接) - Apache Camel: FTP files with scheduler (close connection when directory is empty) Apache Camel FTP 文件过滤器 - Apache Camel FTP filefilter Apache Camel FTP错误 - Apache Camel FTP error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM