Class SmbOutboundGateway

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ComponentSourceAware, ExpressionCapable, Orderable, MessageProducer, HeaderPropagationAware, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class SmbOutboundGateway extends AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>
Outbound Gateway for performing remote file operations via SMB.
Since:
6.0
Author:
Gregory Bragg, Artem Bilan
  • Constructor Details

    • SmbOutboundGateway

      public SmbOutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, MessageSessionCallback<jcifs.smb.SmbFile,?> messageSessionCallback)
      Construct an instance using the provided session factory and callback for performing operations on the session.
      Parameters:
      sessionFactory - the session factory.
      messageSessionCallback - the callback.
    • SmbOutboundGateway

      public SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, MessageSessionCallback<jcifs.smb.SmbFile,?> messageSessionCallback)
      Construct an instance with the supplied remote file template and callback for performing operations on the session.
      Parameters:
      remoteFileTemplate - the remote file template.
      messageSessionCallback - the callback.
    • SmbOutboundGateway

      public SmbOutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, @Nullable String expression)
      Construct an instance with the supplied session factory, a command ('ls', 'get' etc.), and an expression to determine the remote path.
      Parameters:
      sessionFactory - the session factory.
      command - the command.
      expression - the remote path expression.
    • SmbOutboundGateway

      public SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command, @Nullable String expression)
      Construct an instance with the supplied remote file template, a command ('ls', 'get' etc.), and an expression to determine the remote path.
      Parameters:
      remoteFileTemplate - the remote file template.
      command - the command.
      expression - the remote path expression.
    • SmbOutboundGateway

      public SmbOutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command)
      Construct an instance with the supplied session factory and command ('ls', 'nlst', 'put' or 'mput').

      The remoteDirectory expression is null assuming to use the workingDirectory from the SMB Client.

      Parameters:
      sessionFactory - the session factory.
      command - the command.
    • SmbOutboundGateway

      public SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command)
      Construct an instance with the supplied remote file template and command ('ls', 'nlst', 'put' or 'mput').

      The remoteDirectory expression is null assuming to use the workingDirectory from the SMB Client.

      Parameters:
      remoteFileTemplate - the remote file template.
      command - the command.
  • Method Details