org.springframework.integration.ftp.gateway
Class FtpOutboundGateway
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway<org.apache.commons.net.ftp.FTPFile>
org.springframework.integration.ftp.gateway.FtpOutboundGateway
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, NamedComponent, Orderable, MessageHandler, MessageProducer, TrackableComponent
public class FtpOutboundGateway
- extends AbstractRemoteFileOutboundGateway<org.apache.commons.net.ftp.FTPFile>
Outbound Gateway for performing remote file operations via FTP/FTPS.
- Since:
- 2.1
- Author:
- Gary Russell
Fields inherited from class org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway |
command, COMMAND_GET, COMMAND_LS, COMMAND_MGET, COMMAND_RM, OPTION_ALL, OPTION_EXCEPTION_WHEN_EMPTY, OPTION_LINKS, OPTION_NAME_ONLY, OPTION_NOSORT, OPTION_PRESERVE_TIMESTAMP, OPTION_SUBDIRS, options, sessionFactory |
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary |
FtpOutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory,
java.lang.String command,
java.lang.String expression)
|
Method Summary |
protected java.util.List<AbstractFileInfo<org.apache.commons.net.ftp.FTPFile>> |
asFileInfoList(java.util.Collection<org.apache.commons.net.ftp.FTPFile> files)
|
protected java.lang.String |
getFilename(org.apache.commons.net.ftp.FTPFile file)
|
protected long |
getModified(org.apache.commons.net.ftp.FTPFile file)
|
protected boolean |
isDirectory(org.apache.commons.net.ftp.FTPFile file)
|
protected boolean |
isLink(org.apache.commons.net.ftp.FTPFile file)
|
Methods inherited from class org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway |
filterFiles, get, getRemoteFilename, handleRequestMessage, ls, mGet, onInit, purgeDots, purgeLinks, rm, setAutoCreateLocalDirectory, setFilter, setLocalDirectory, setOptions, setRemoteFileSeparator, setTemporaryFileSuffix |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FtpOutboundGateway
public FtpOutboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory,
java.lang.String command,
java.lang.String expression)
isDirectory
protected boolean isDirectory(org.apache.commons.net.ftp.FTPFile file)
- Specified by:
isDirectory
in class AbstractRemoteFileOutboundGateway<org.apache.commons.net.ftp.FTPFile>
isLink
protected boolean isLink(org.apache.commons.net.ftp.FTPFile file)
- Specified by:
isLink
in class AbstractRemoteFileOutboundGateway<org.apache.commons.net.ftp.FTPFile>
getFilename
protected java.lang.String getFilename(org.apache.commons.net.ftp.FTPFile file)
- Specified by:
getFilename
in class AbstractRemoteFileOutboundGateway<org.apache.commons.net.ftp.FTPFile>
getModified
protected long getModified(org.apache.commons.net.ftp.FTPFile file)
- Specified by:
getModified
in class AbstractRemoteFileOutboundGateway<org.apache.commons.net.ftp.FTPFile>
asFileInfoList
protected java.util.List<AbstractFileInfo<org.apache.commons.net.ftp.FTPFile>> asFileInfoList(java.util.Collection<org.apache.commons.net.ftp.FTPFile> files)
- Specified by:
asFileInfoList
in class AbstractRemoteFileOutboundGateway<org.apache.commons.net.ftp.FTPFile>