java.lang.Object
org.springframework.integration.smb.dsl.Smb

public final class Smb extends Object
The factory for SMB components.
Since:
6.0
  • Method Details

    • inboundAdapter

      public static SmbInboundChannelAdapterSpec inboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory)
      A SmbInboundChannelAdapterSpec factory for an inbound channel adapter spec.
      Parameters:
      sessionFactory - the session factory.
      Returns:
      the spec.
    • inboundAdapter

      public static SmbInboundChannelAdapterSpec inboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, Comparator<File> receptionOrderComparator)
      A SmbInboundChannelAdapterSpec factory for an inbound channel adapter spec.
      Parameters:
      sessionFactory - the session factory.
      receptionOrderComparator - the comparator.
      Returns:
      the spec.
    • inboundStreamingAdapter

      public static SmbStreamingInboundChannelAdapterSpec inboundStreamingAdapter(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate)
      A SmbStreamingInboundChannelAdapterSpec factory for an inbound channel adapter spec.
      Parameters:
      remoteFileTemplate - the remote file template.
      Returns:
      the spec.
    • inboundStreamingAdapter

      public static SmbStreamingInboundChannelAdapterSpec inboundStreamingAdapter(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, Comparator<jcifs.smb.SmbFile> receptionOrderComparator)
      A SmbStreamingInboundChannelAdapterSpec factory for an inbound channel adapter spec.
      Parameters:
      remoteFileTemplate - the remote file template.
      receptionOrderComparator - the comparator.
      Returns:
      the spec.
    • outboundAdapter

      public static SmbMessageHandlerSpec outboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory)
      A SmbMessageHandlerSpec factory for an outbound channel adapter spec.
      Parameters:
      sessionFactory - the session factory.
      Returns:
      the spec.
    • outboundAdapter

      public static SmbMessageHandlerSpec outboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.support.FileExistsMode fileExistsMode)
      A SmbMessageHandlerSpec factory for an outbound channel adapter spec.
      Parameters:
      sessionFactory - the session factory.
      fileExistsMode - the file exists mode.
      Returns:
      the spec.
    • outboundAdapter

      public static SmbMessageHandlerSpec outboundAdapter(SmbRemoteFileTemplate smbRemoteFileTemplate)
      A SmbMessageHandlerSpec factory for an outbound channel adapter spec.
      Parameters:
      smbRemoteFileTemplate - the remote file template.
      Returns:
      the spec.
    • outboundAdapter

      public static SmbMessageHandlerSpec outboundAdapter(SmbRemoteFileTemplate smbRemoteFileTemplate, org.springframework.integration.file.support.FileExistsMode fileExistsMode)
      A SmbMessageHandlerSpec factory for an outbound channel adapter spec.
      Parameters:
      smbRemoteFileTemplate - the remote file template.
      fileExistsMode - the file exists mode.
      Returns:
      the spec.
    • outboundGateway

      public static SmbOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.Command command, String expression)
      Produce a SmbOutboundGatewaySpec based on the SessionFactory, AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.
      Parameters:
      sessionFactory - the SessionFactory.
      command - the command to perform on the SMB.
      expression - the remoteFilePath SpEL expression.
      Returns:
      the SmbOutboundGatewaySpec
    • outboundGateway

      public static SmbOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, String expression)
      Produce a SmbOutboundGatewaySpec based on the SessionFactory, AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.
      Parameters:
      sessionFactory - the SessionFactory.
      command - the command to perform on the SMB.
      expression - the remoteFilePath SpEL expression.
      Returns:
      the SmbOutboundGatewaySpec
      See Also:
      • RemoteFileTemplate
    • outboundGateway

      public static SmbOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.Command command, String expression)
      Produce a SmbOutboundGatewaySpec based on the RemoteFileTemplate, AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.
      Parameters:
      remoteFileTemplate - the RemoteFileTemplate.
      command - the command to perform on the SMB.
      expression - the remoteFilePath SpEL expression.
      Returns:
      the SmbOutboundGatewaySpec
      See Also:
      • RemoteFileTemplate
    • outboundGateway

      public static SmbOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command, String expression)
      Produce a SmbOutboundGatewaySpec based on the RemoteFileTemplate, AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.
      Parameters:
      remoteFileTemplate - the RemoteFileTemplate.
      command - the command to perform on the SMB.
      expression - the remoteFilePath SpEL expression.
      Returns:
      the SmbOutboundGatewaySpec
      See Also:
      • RemoteFileTemplate
    • outboundGateway

      public static SmbOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.remote.MessageSessionCallback<jcifs.smb.SmbFile,?> messageSessionCallback)
      Produce a SmbOutboundGatewaySpec based on the MessageSessionCallback.
      Parameters:
      sessionFactory - the SessionFactory to connect to.
      messageSessionCallback - the MessageSessionCallback to perform SMB. operation(s) with the Message context.
      Returns:
      the SmbOutboundGatewaySpec
      See Also:
      • MessageSessionCallback