Class SmbRemoteFileTemplate

java.lang.Object
org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile>
org.springframework.integration.smb.session.SmbRemoteFileTemplate
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.integration.file.remote.RemoteFileOperations<jcifs.smb.SmbFile>

public class SmbRemoteFileTemplate extends org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile>
The SMB-specific RemoteFileTemplate implementation.
Since:
6.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.integration.file.remote.RemoteFileOperations

    org.springframework.integration.file.remote.RemoteFileOperations.OperationsCallback<F,T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final List<Integer>
     

    Fields inherited from class org.springframework.integration.file.remote.RemoteFileTemplate

    logger, sessionFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmbRemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory)
    Construct a SmbRemoteFileTemplate with the supplied session factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isStatusDirty(int status)
    Check if SmbException.getNtStatus() is treated as fatal.
    protected boolean
     

    Methods inherited from class org.springframework.integration.file.remote.RemoteFileTemplate

    afterPropertiesSet, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NOT_DIRTY_STATUSES

      protected static final List<Integer> NOT_DIRTY_STATUSES
  • Constructor Details

    • SmbRemoteFileTemplate

      public SmbRemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory)
      Construct a SmbRemoteFileTemplate with the supplied session factory.
      Parameters:
      sessionFactory - the session factory.
  • Method Details

    • shouldMarkSessionAsDirty

      protected boolean shouldMarkSessionAsDirty(Exception ex)
      Overrides:
      shouldMarkSessionAsDirty in class org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile>
    • isStatusDirty

      protected boolean isStatusDirty(int status)
      Check if SmbException.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