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:
Closeable
,AutoCloseable
,Aware
,BeanFactoryAware
,BeanNameAware
,InitializingBean
,InboundFileSynchronizer
public class FtpInboundFileSynchronizer extends AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
An implementation of
AbstractInboundFileSynchronizer
for FTP.- Since:
- 2.0
- Author:
- Iwein Fuld, Josh Long, Mark Fisher, Artem Bilan, Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer
EXPRESSION_PARSER, logger
-
Constructor Summary
Constructors Constructor Description FtpInboundFileSynchronizer(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)
Create a synchronizer with theSessionFactory
used to acquireSession
instances. -
Method Summary
Modifier and Type Method Description protected String
getFilename(org.apache.commons.net.ftp.FTPFile file)
protected long
getModified(org.apache.commons.net.ftp.FTPFile file)
protected boolean
isFile(org.apache.commons.net.ftp.FTPFile file)
protected String
protocol()
Return the protocol this synchronizer works with.Methods inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer
afterPropertiesSet, close, copyFileToLocalDirectory, doInit, doSetFilter, doSetRemoteDirectoryExpression, evaluateRemoteDirectory, 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(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)Create a synchronizer with theSessionFactory
used to acquireSession
instances.- Parameters:
sessionFactory
- The session factory.
-
-
Method Details
-
isFile
protected boolean isFile(org.apache.commons.net.ftp.FTPFile file)- Specified by:
isFile
in classAbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
-
getFilename
- Specified by:
getFilename
in classAbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
-
getModified
protected long getModified(org.apache.commons.net.ftp.FTPFile file)- Specified by:
getModified
in classAbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
-
protocol
Description copied from class:AbstractInboundFileSynchronizer
Return the protocol this synchronizer works with.- Specified by:
protocol
in classAbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
- Returns:
- the protocol this synchronizer works with.
-