Class SftpStreamingMessageSource

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, Lifecycle, MessageSource<InputStream>, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, MessageSourceManagement

public class SftpStreamingMessageSource extends AbstractRemoteFileStreamingMessageSource<org.apache.sshd.sftp.client.SftpClient.DirEntry>
Message source for streaming SFTP remote file contents.
Since:
4.3
Author:
Gary Russell, Artem Bilan
  • Constructor Details

    • SftpStreamingMessageSource

      public SftpStreamingMessageSource(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> template)
      Construct an instance with the supplied template.
      Parameters:
      template - the template.
    • SftpStreamingMessageSource

      public SftpStreamingMessageSource(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> template, Comparator<org.apache.sshd.sftp.client.SftpClient.DirEntry> comparator)
      Construct an instance with the supplied template and comparator. Note: the comparator is applied each time the remote directory is listed which only occurs when the previous list is exhausted.
      Parameters:
      template - the template.
      comparator - the comparator.
  • Method Details