java.lang.Object
org.springframework.integration.sftp.dsl.Sftp

public final class Sftp extends Object
The factory for SFTP components.
Since:
5.0
  • Method Details

    • inboundAdapter

      public static SftpInboundChannelAdapterSpec inboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory)
      An SftpInboundChannelAdapterSpec factory for an inbound channel adapter spec.
      Parameters:
      sessionFactory - the session factory.
      Returns:
      the spec.
    • inboundAdapter

      public static SftpInboundChannelAdapterSpec inboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, Comparator<File> receptionOrderComparator)
      An SftpInboundChannelAdapterSpec factory for an inbound channel adapter spec.
      Parameters:
      sessionFactory - the session factory.
      receptionOrderComparator - the comparator.
      Returns:
      the spec.
    • inboundStreamingAdapter

      public static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate)
      An SftpStreamingInboundChannelAdapterSpec factory for an inbound channel adapter spec.
      Parameters:
      remoteFileTemplate - the remote file template.
      Returns:
      the spec.
    • inboundStreamingAdapter

      public static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, Comparator<org.apache.sshd.sftp.client.SftpClient.DirEntry> receptionOrderComparator)
      An SftpStreamingInboundChannelAdapterSpec factory for an inbound channel adapter spec.
      Parameters:
      remoteFileTemplate - the remote file template.
      receptionOrderComparator - the comparator.
      Returns:
      the spec.
    • outboundAdapter

      public static SftpMessageHandlerSpec outboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory)
      An SftpMessageHandlerSpec factory for an outbound channel adapter spec.
      Parameters:
      sessionFactory - the session factory.
      Returns:
      the spec.
    • outboundAdapter

      public static SftpMessageHandlerSpec outboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, org.springframework.integration.file.support.FileExistsMode fileExistsMode)
      An SftpMessageHandlerSpec factory for an outbound channel adapter spec.
      Parameters:
      sessionFactory - the session factory.
      fileExistsMode - the file exists mode.
      Returns:
      the spec.
    • outboundAdapter

      public static SftpMessageHandlerSpec outboundAdapter(SftpRemoteFileTemplate sftpRemoteFileTemplate)
      An SftpMessageHandlerSpec factory for an outbound channel adapter spec.
      Parameters:
      sftpRemoteFileTemplate - the remote file template.
      Returns:
      the spec.
      Since:
      5.4
    • outboundAdapter

      public static SftpMessageHandlerSpec outboundAdapter(SftpRemoteFileTemplate sftpRemoteFileTemplate, org.springframework.integration.file.support.FileExistsMode fileExistsMode)
      An SftpMessageHandlerSpec factory for an outbound channel adapter spec.
      Parameters:
      sftpRemoteFileTemplate - the remote file template.
      fileExistsMode - the file exists mode.
      Returns:
      the spec.
      Since:
      5.4
    • outboundGateway

      public static SftpOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.Command command, String expression)
      Produce a SftpOutboundGatewaySpec based on the SessionFactory, AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.
      Parameters:
      sessionFactory - the SessionFactory.
      command - the command to perform on the FTP.
      expression - the remoteFilePath SpEL expression.
      Returns:
      the SftpOutboundGatewaySpec
    • outboundGateway

      public static SftpOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, String command, String expression)
      Produce a SftpOutboundGatewaySpec based on the SessionFactory, AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.
      Parameters:
      sessionFactory - the SessionFactory.
      command - the command to perform on the FTP.
      expression - the remoteFilePath SpEL expression.
      Returns:
      the SftpOutboundGatewaySpec
      See Also:
      • RemoteFileTemplate
    • outboundGateway

      public static SftpOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.Command command, String expression)
      Produce a SftpOutboundGatewaySpec based on the RemoteFileTemplate, AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.
      Parameters:
      remoteFileTemplate - the RemoteFileTemplate to be based on.
      command - the command to perform on the SFTP.
      expression - the remoteFilePath SpEL expression.
      Returns:
      the SftpOutboundGatewaySpec
      See Also:
      • RemoteFileTemplate
    • outboundGateway

      public static SftpOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, String command, String expression)
      Produce a SftpOutboundGatewaySpec based on the RemoteFileTemplate, AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.
      Parameters:
      remoteFileTemplate - the RemoteFileTemplate to be based on.
      command - the command to perform on the SFTP.
      expression - the remoteFilePath SpEL expression.
      Returns:
      the SftpOutboundGatewaySpec
      See Also:
      • RemoteFileTemplate
    • outboundGateway

      public static SftpOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.session.SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, org.springframework.integration.file.remote.MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry,?> messageSessionCallback)
      Produce a SftpOutboundGatewaySpec based on the MessageSessionCallback.
      Parameters:
      sessionFactory - the SessionFactory to connect to.
      messageSessionCallback - the MessageSessionCallback to perform SFTP operation(s) with the Message context.
      Returns:
      the SftpOutboundGatewaySpec
      See Also:
      • MessageSessionCallback