Class SmbRemoteFileTemplate
java.lang.Object
org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile>
org.springframework.integration.smb.session.SmbRemoteFileTemplate
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- InitializingBean,- RemoteFileOperations<jcifs.smb.SmbFile>
The SMB-specific 
RemoteFileTemplate implementation.- Since:
- 6.0
- Author:
- Artem Bilan
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.integration.file.remote.RemoteFileOperationsRemoteFileOperations.OperationsCallback<F,T> 
- 
Field SummaryFieldsFields inherited from class org.springframework.integration.file.remote.RemoteFileTemplatelogger, sessionFactory
- 
Constructor SummaryConstructorsConstructorDescriptionSmbRemoteFileTemplate(SessionFactory<jcifs.smb.SmbFile> sessionFactory) Construct aSmbRemoteFileTemplatewith the supplied session factory.
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanisStatusDirty(int status) Check ifSmbException.getNtStatus()is treated as fatal.protected booleanDetermine whetherSession.dirty()should be called in theRemoteFileTemplate.execute(SessionCallback)when an exception is thrown from the callback.Methods inherited from class org.springframework.integration.file.remote.RemoteFileTemplateafterPropertiesSet, append, append, execute, executeWithClient, exists, get, get, getDirectoryExpressionProcessor, getRemoteFileSeparator, getSession, getSessionFactory, getTemporaryFileSuffix, invoke, isUseTemporaryFileName, list, remove, rename, send, send, setAutoCreateDirectory, setBeanFactory, setCharset, setFileNameExpression, setFileNameGenerator, setRemoteDirectoryExpression, setRemoteFileSeparator, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileName
- 
Field Details- 
NOT_DIRTY_STATUSES
 
- 
- 
Constructor Details- 
SmbRemoteFileTemplateConstruct aSmbRemoteFileTemplatewith the supplied session factory.- Parameters:
- sessionFactory- the session factory.
 
 
- 
- 
Method Details- 
shouldMarkSessionAsDirtyDescription copied from class:RemoteFileTemplateDetermine whetherSession.dirty()should be called in theRemoteFileTemplate.execute(SessionCallback)when an exception is thrown from the callback. By default, this method returnstrue. Remote file protocol extensions can override this method to provide a specific strategy against the thrown exception, e.g.file not founderror is not a signal that session is broken.- Overrides:
- shouldMarkSessionAsDirtyin class- RemoteFileTemplate<jcifs.smb.SmbFile>
- Parameters:
- ex- the exception to check if- Sessionmust be marked as dirty.
- Returns:
- true if Session.dirty()should be called.
 
- 
isStatusDirtyprotected boolean isStatusDirty(int status) Check ifSmbException.getNtStatus()is treated as fatal.- Parameters:
- status- the value from- SmbException.getNtStatus().
- Returns:
- true if SmbException.getNtStatus()is treated as fatal.
- Since:
- 6.0.8
 
 
-