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 SummaryFields inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizerEXPRESSION_PARSER, logger
- 
Constructor SummaryConstructors Constructor Description FtpInboundFileSynchronizer(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)Create a synchronizer with theSessionFactoryused to acquireSessioninstances.
- 
Method SummaryModifier and Type Method Description protected 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 Stringprotocol()Return the protocol this synchronizer works with.Methods inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizerafterPropertiesSet, 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- 
FtpInboundFileSynchronizerpublic FtpInboundFileSynchronizer(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)Create a synchronizer with theSessionFactoryused to acquireSessioninstances.- Parameters:
- sessionFactory- The session factory.
 
 
- 
- 
Method Details- 
isFileprotected boolean isFile(org.apache.commons.net.ftp.FTPFile file)- Specified by:
- isFilein class- AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
 
- 
getFilename- Specified by:
- getFilenamein class- AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
 
- 
getModifiedprotected long getModified(org.apache.commons.net.ftp.FTPFile file)- Specified by:
- getModifiedin class- AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
 
- 
protocolDescription copied from class:AbstractInboundFileSynchronizerReturn the protocol this synchronizer works with.- Specified by:
- protocolin class- AbstractInboundFileSynchronizer<org.apache.commons.net.ftp.FTPFile>
- Returns:
- the protocol this synchronizer works with.
 
 
-