From b66acf236364405d3d98d52e2290d51d9322811c Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Fri, 2 Sep 2016 14:56:18 -0400 Subject: [PATCH] Fix (S)FTP gateway samples in docs for expression SO: http://stackoverflow.com/questions/39293574/how-to-configure-sftp-outbound-gateway-using-java-config --- src/reference/asciidoc/ftp.adoc | 3 ++- src/reference/asciidoc/sftp.adoc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/reference/asciidoc/ftp.adoc b/src/reference/asciidoc/ftp.adoc index 9473e457cd..a737522527 100644 --- a/src/reference/asciidoc/ftp.adoc +++ b/src/reference/asciidoc/ftp.adoc @@ -888,7 +888,8 @@ public class FtpJavaApplication { @Bean @ServiceActivator(inputChannel = "ftpChannel") public MessageHandler handler() { - FtpOutboundGateway ftpOutboundGateway = new FtpOutboundGateway(ftpSessionFactory(), "ls"); + FtpOutboundGateway ftpOutboundGateway = + new FtpOutboundGateway(ftpSessionFactory(), "ls", "'my_remote_dir/'"); ftpOutboundGateway.setOutputChannelName("lsReplyChannel"); return ftpOutboundGateway; } diff --git a/src/reference/asciidoc/sftp.adoc b/src/reference/asciidoc/sftp.adoc index e6fd58cb4c..8950e29e85 100644 --- a/src/reference/asciidoc/sftp.adoc +++ b/src/reference/asciidoc/sftp.adoc @@ -976,7 +976,7 @@ public class SftpJavaApplication { @Bean @ServiceActivator(inputChannel = "sftpChannel") public MessageHandler handler() { - return new SftpOutboundGateway(ftpSessionFactory(), "ls"); + return new SftpOutboundGateway(ftpSessionFactory(), "ls", "'my_remote_dir/'"); } }