Class FtpInboundFileSynchronizer
java.lang.Object
org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer
- 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 FtpInboundFileSynchronizer
extends org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
An implementation of
AbstractInboundFileSynchronizer for FTP.- Since:
- 2.0
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FtpInboundFileSynchronizer(org.springframework.integration.file.remote.session.SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)Create a synchronizer with theSessionFactoryused to acquireSessioninstances. -
Method Summary
Modifier and Type Method Description protected java.lang.StringgetFilename(org.apache.commons.net.ftp.FTPFile file)protected longgetModified(org.apache.commons.net.ftp.FTPFile file)protected booleanisFile(org.apache.commons.net.ftp.FTPFile file)protected java.lang.Stringprotocol()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
-
FtpInboundFileSynchronizer
public FtpInboundFileSynchronizer(org.springframework.integration.file.remote.session.SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)Create a synchronizer with theSessionFactoryused to acquireSessioninstances.- Parameters:
sessionFactory- The session factory.
-
-
Method Details
-
isFile
protected boolean isFile(org.apache.commons.net.ftp.FTPFile file)- Specified by:
isFilein classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
-
getFilename
protected java.lang.String getFilename(org.apache.commons.net.ftp.FTPFile file)- Specified by:
getFilenamein classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
-
getModified
protected long getModified(org.apache.commons.net.ftp.FTPFile file)- Specified by:
getModifiedin classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
-
protocol
protected java.lang.String protocol()- Specified by:
protocolin classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
-