INT-2494 Move listNames() Method to Session

ExtendedSession, with the listNames() method was introduced
in 2.1.1 (INT-2492) to support mget commands on the gateway.

This was to avoid breaking any user implementations of Session
in a point release. However, we documented this was temporary
and the interfaces would be consolidated in 2.2., and
ExtendedSession would be removed.

This is that consolidation.
This commit is contained in:
Gary Russell
2012-04-06 16:35:17 -04:00
parent 1ba24f7bb6
commit 00a71eefd2
8 changed files with 26 additions and 79 deletions

View File

@@ -24,7 +24,6 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;
import org.springframework.integration.file.remote.session.ExtendedSession;
import org.springframework.integration.file.remote.session.Session;
import org.springframework.util.Assert;
@@ -36,7 +35,7 @@ import org.springframework.util.Assert;
* @author Gary Russell
* @since 2.0
*/
public class FtpSession implements ExtendedSession<FTPFile> {
public class FtpSession implements Session<FTPFile> {
private final Log logger = LogFactory.getLog(this.getClass());