diff --git a/docs/src/reference/docbook/sftp.xml b/docs/src/reference/docbook/sftp.xml
index 55b7be7ecb..4db47b5f1b 100644
--- a/docs/src/reference/docbook/sftp.xml
+++ b/docs/src/reference/docbook/sftp.xml
@@ -175,7 +175,7 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/sftp
SFTP Outbound Gateway
- The FTP Outbound Gateway provides a limited set of commands to interact with a remote FTP/FTPS server.
+ The SFTP Outbound Gateway provides a limited set of commands to interact with a remote SFTP server.
Commands supported are:
diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/FileHeaders.java b/spring-integration-file/src/main/java/org/springframework/integration/file/FileHeaders.java
index 2aab978152..f89fe0ca86 100644
--- a/spring-integration-file/src/main/java/org/springframework/integration/file/FileHeaders.java
+++ b/spring-integration-file/src/main/java/org/springframework/integration/file/FileHeaders.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2010 the original author or authors.
+ * Copyright 2002-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@ public abstract class FileHeaders {
public static final String ORIGINAL_FILE = PREFIX + "originalFile";
- public static final String REMOTE_DIR = PREFIX + "remote_dir";
+ public static final String REMOTE_DIR = PREFIX + "remoteDir";
- public static final String REMOTE_FILE = PREFIX + "remote_file";
+ public static final String REMOTE_FILE = PREFIX + "remoteFile";
}
diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java
index 8c1f55e9b3..eb38261038 100644
--- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java
+++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java
@@ -209,7 +209,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply
}
return results;
} else {
- List> canonicalFiles = this.asFileInFoList(lsFiles);
+ List> canonicalFiles = this.asFileInfoList(lsFiles);
for (AbstractFileInfo file : canonicalFiles) {
file.setRemoteDir(dir);
}
@@ -318,7 +318,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply
abstract protected long getModified(F file);
- abstract protected List> asFileInFoList(Collection files);
+ abstract protected List> asFileInfoList(Collection files);
/**
* @param options the options to set
diff --git a/spring-integration-file/src/test/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGatewayTests.java b/spring-integration-file/src/test/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGatewayTests.java
index 2d4cfc5748..7a0ea7cd50 100644
--- a/spring-integration-file/src/test/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGatewayTests.java
+++ b/spring-integration-file/src/test/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGatewayTests.java
@@ -428,7 +428,7 @@ class TestRemoteFileOutboundGateway extends AbstractRemoteFileOutboundGateway> asFileInFoList(
+ protected List> asFileInfoList(
Collection files) {
return new ArrayList>(files);
}
diff --git a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/gateway/FtpOutboundGateway.java b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/gateway/FtpOutboundGateway.java
index 8f9f1411c3..e9c8067483 100644
--- a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/gateway/FtpOutboundGateway.java
+++ b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/gateway/FtpOutboundGateway.java
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.springframework.integration.ftp.gateway;
import java.util.ArrayList;
@@ -28,7 +29,6 @@ import org.springframework.integration.ftp.session.FtpFileInfo;
/**
* @author Gary Russell
* @since 2.1
- *
*/
public class FtpOutboundGateway extends AbstractRemoteFileOutboundGateway {
@@ -58,8 +58,7 @@ public class FtpOutboundGateway extends AbstractRemoteFileOutboundGateway> asFileInFoList(
- Collection files) {
+ protected List> asFileInfoList(Collection files) {
List> canonicalFiles = new ArrayList>();
for (FTPFile file : files) {
canonicalFiles.add(new FtpFileInfo(file));
diff --git a/spring-integration-ftp/src/main/resources/org/springframework/integration/ftp/config/spring-integration-ftp-2.1.xsd b/spring-integration-ftp/src/main/resources/org/springframework/integration/ftp/config/spring-integration-ftp-2.1.xsd
index 4f30faf2aa..807eca68ca 100644
--- a/spring-integration-ftp/src/main/resources/org/springframework/integration/ftp/config/spring-integration-ftp-2.1.xsd
+++ b/spring-integration-ftp/src/main/resources/org/springframework/integration/ftp/config/spring-integration-ftp-2.1.xsd
@@ -188,7 +188,7 @@ endpoint itself is a Polling Consumer for a channel with a queue.
@@ -197,11 +197,11 @@ endpoint itself is a Polling Consumer for a channel with a queue.
-
+
- Reference to a [org.springframework.integration.sftp.session.SftpSessionFactory] bean.
+ Reference to a [org.springframework.integration.ftp.session.AbstractFtpSessionFactory] bean.
@@ -215,14 +215,14 @@ endpoint itself is a Polling Consumer for a channel with a queue.
- sftp command - ls, get or rm
+ FTP command - ls, get or rm
- sftp command options; for ls, -1 means just return the file names (otherwise file
+ FTP command options; for ls, -1 means just return the file names (otherwise file
metadata is returned, -dirs means include directories (not included by default),
-links means include links (not included by default); for get, -P means preserve
timestamp from remote file.
diff --git a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java
index 0ae258e36d..ad419b9993 100644
--- a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java
+++ b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.springframework.integration.sftp.gateway;
import java.util.ArrayList;
@@ -29,7 +30,6 @@ import com.jcraft.jsch.ChannelSftp.LsEntry;
/**
* @author Gary Russell
* @since 2.0.4
- *
*/
public class SftpOutboundGateway extends AbstractRemoteFileOutboundGateway {
@@ -39,8 +39,7 @@ public class SftpOutboundGateway extends AbstractRemoteFileOutboundGateway> asFileInFoList(Collection files) {
+ protected List> asFileInfoList(Collection files) {
List> canonicalFiles = new ArrayList>();
for (LsEntry file : files) {
canonicalFiles.add(new SftpFileInfo(file));