Class SmbInboundFileSynchronizer
java.lang.Object
org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<jcifs.smb.SmbFile>
org.springframework.integration.smb.inbound.SmbInboundFileSynchronizer
- All Implemented Interfaces:
Closeable,AutoCloseable,Aware,BeanFactoryAware,BeanNameAware,InitializingBean,InboundFileSynchronizer
An implementation of
AbstractInboundFileSynchronizer for SMB.- Since:
- 6.0
- Author:
- Markus Spann, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer
EXPRESSION_PARSER, logger -
Constructor Summary
ConstructorsConstructorDescriptionSmbInboundFileSynchronizer(SessionFactory<jcifs.smb.SmbFile> sessionFactory) Create a synchronizer with theSessionFactoryused to acquireSessioninstances. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilename(jcifs.smb.SmbFile _file) protected longgetModified(jcifs.smb.SmbFile file) protected booleanisFile(jcifs.smb.SmbFile _file) protected Stringprotocol()Return the protocol this synchronizer works with.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
-
SmbInboundFileSynchronizer
Create a synchronizer with theSessionFactoryused to acquireSessioninstances.- Parameters:
sessionFactory- theSessionFactoryto use.
-
-
Method Details
-
isFile
protected boolean isFile(jcifs.smb.SmbFile _file) - Specified by:
isFilein classAbstractInboundFileSynchronizer<jcifs.smb.SmbFile>
-
getFilename
- Specified by:
getFilenamein classAbstractInboundFileSynchronizer<jcifs.smb.SmbFile>
-
getModified
protected long getModified(jcifs.smb.SmbFile file) - Specified by:
getModifiedin classAbstractInboundFileSynchronizer<jcifs.smb.SmbFile>
-
protocol
Description copied from class:AbstractInboundFileSynchronizerReturn the protocol this synchronizer works with.- Specified by:
protocolin classAbstractInboundFileSynchronizer<jcifs.smb.SmbFile>- Returns:
- the protocol this synchronizer works with.
-