[英]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.