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
ConstructorDescriptionSmbInboundFileSynchronizer
(SessionFactory<jcifs.smb.SmbFile> sessionFactory) Create a synchronizer with theSessionFactory
used to acquireSession
instances. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getFilename
(jcifs.smb.SmbFile _file) protected long
getModified
(jcifs.smb.SmbFile file) protected boolean
isFile
(jcifs.smb.SmbFile _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, 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 theSessionFactory
used to acquireSession
instances.- Parameters:
sessionFactory
- theSessionFactory
to use.
-
-
Method Details
-
isFile
protected boolean isFile(jcifs.smb.SmbFile _file) - Specified by:
isFile
in classAbstractInboundFileSynchronizer<jcifs.smb.SmbFile>
-
getFilename
- Specified by:
getFilename
in classAbstractInboundFileSynchronizer<jcifs.smb.SmbFile>
-
getModified
protected long getModified(jcifs.smb.SmbFile file) - Specified by:
getModified
in classAbstractInboundFileSynchronizer<jcifs.smb.SmbFile>
-
protocol
Description copied from class:AbstractInboundFileSynchronizer
Return the protocol this synchronizer works with.- Specified by:
protocol
in classAbstractInboundFileSynchronizer<jcifs.smb.SmbFile>
- Returns:
- the protocol this synchronizer works with.
-