Class SftpInboundFileSynchronizer
java.lang.Object
org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.inbound.SftpInboundFileSynchronizer
- All Implemented Interfaces:
Closeable
,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<org.apache.sshd.sftp.client.SftpClient.DirEntry>
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
ConstructorDescriptionSftpInboundFileSynchronizer
(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) Create a synchronizer with theSessionFactory
used to acquireSession
instances. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getFilename
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected long
getModified
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected boolean
isFile
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected 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
-
Constructor Details
-
SftpInboundFileSynchronizer
public SftpInboundFileSynchronizer(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) Create a synchronizer with theSessionFactory
used to acquireSession
instances.- Parameters:
sessionFactory
- The session factory.
-
-
Method Details
-
isFile
protected boolean isFile(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - Specified by:
isFile
in classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-
getFilename
- Specified by:
getFilename
in classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-
getModified
protected long getModified(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - Specified by:
getModified
in classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-
protocol
- Specified by:
protocol
in classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-