Class SftpInboundFileSynchronizer

java.lang.Object
org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.inbound.SftpInboundFileSynchronizer
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.integration.file.remote.synchronizer.InboundFileSynchronizer

public class SftpInboundFileSynchronizer
extends org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.jcraft.jsch.ChannelSftp.LsEntry>
Handles the synchronization between a remote SFTP directory and a local mount.
Since:
2.0
  • Field Summary

    Fields inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer

    EXPRESSION_PARSER, logger
  • Constructor Summary

    Constructors 
    Constructor Description
    SftpInboundFileSynchronizer​(org.springframework.integration.file.remote.session.SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
    Create a synchronizer with the SessionFactory used to acquire Session instances.
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.String getFilename​(com.jcraft.jsch.ChannelSftp.LsEntry file)  
    protected long getModified​(com.jcraft.jsch.ChannelSftp.LsEntry file)  
    protected boolean isFile​(com.jcraft.jsch.ChannelSftp.LsEntry file)  
    protected java.lang.String protocol()  

    Methods inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer

    afterPropertiesSet, close, copyFileToLocalDirectory, doInit, doSetFilter, doSetRemoteDirectoryExpression, filterFiles, getComparator, getRemoteFileMetadata, getTemporaryFileSuffix, removeRemoteFileMetadata, rollbackFromFileToListEnd, setBeanFactory, setBeanName, setComparator, setDeleteRemoteFiles, setFilter, setLocalFilenameGeneratorExpression, setLocalFilenameGeneratorExpressionString, setMetadataStorePrefix, setPreserveTimestamp, setRemoteDirectory, setRemoteDirectoryExpression, setRemoteDirectoryExpressionString, setRemoteFileMetadataStore, setRemoteFileSeparator, setTemporaryFileSuffix, synchronizeToLocalDirectory, synchronizeToLocalDirectory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SftpInboundFileSynchronizer

      public SftpInboundFileSynchronizer​(org.springframework.integration.file.remote.session.SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
      Create a synchronizer with the SessionFactory used to acquire Session instances.
      Parameters:
      sessionFactory - The session factory.
  • Method Details

    • isFile

      protected boolean isFile​(com.jcraft.jsch.ChannelSftp.LsEntry file)
      Specified by:
      isFile in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.jcraft.jsch.ChannelSftp.LsEntry>
    • getFilename

      protected java.lang.String getFilename​(com.jcraft.jsch.ChannelSftp.LsEntry file)
      Specified by:
      getFilename in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.jcraft.jsch.ChannelSftp.LsEntry>
    • getModified

      protected long getModified​(com.jcraft.jsch.ChannelSftp.LsEntry file)
      Specified by:
      getModified in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.jcraft.jsch.ChannelSftp.LsEntry>
    • protocol

      protected java.lang.String protocol()
      Specified by:
      protocol in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.jcraft.jsch.ChannelSftp.LsEntry>