org.springframework.integration.sftp.gateway
Class SftpOutboundGateway
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<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.gateway.SftpOutboundGateway
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, 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 SftpOutboundGateway
- extends AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>
Outbound Gateway for performing remote file operations via SFTP.
- 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 |
Method Summary |
protected java.util.List<AbstractFileInfo<com.jcraft.jsch.ChannelSftp.LsEntry>> |
asFileInfoList(java.util.Collection<com.jcraft.jsch.ChannelSftp.LsEntry> files)
|
protected java.lang.String |
getFilename(com.jcraft.jsch.ChannelSftp.LsEntry file)
|
protected long |
getModified(com.jcraft.jsch.ChannelSftp.LsEntry file)
|
protected boolean |
isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file)
|
protected boolean |
isLink(com.jcraft.jsch.ChannelSftp.LsEntry 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 |
SftpOutboundGateway
public SftpOutboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory,
java.lang.String command,
java.lang.String expression)
- Parameters:
sessionFactory
- command
- expression
-
isDirectory
protected boolean isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file)
- Specified by:
isDirectory
in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>
isLink
protected boolean isLink(com.jcraft.jsch.ChannelSftp.LsEntry file)
- Specified by:
isLink
in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>
getFilename
protected java.lang.String getFilename(com.jcraft.jsch.ChannelSftp.LsEntry file)
- Specified by:
getFilename
in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>
asFileInfoList
protected java.util.List<AbstractFileInfo<com.jcraft.jsch.ChannelSftp.LsEntry>> asFileInfoList(java.util.Collection<com.jcraft.jsch.ChannelSftp.LsEntry> files)
- Specified by:
asFileInfoList
in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>
getModified
protected long getModified(com.jcraft.jsch.ChannelSftp.LsEntry file)
- Specified by:
getModified
in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>