Class SftpStreamingMessageSource

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

public class SftpStreamingMessageSource extends AbstractRemoteFileStreamingMessageSource<com.jcraft.jsch.ChannelSftp.LsEntry>
Message source for streaming SFTP remote file contents.
Since:
4.3
Author:
Gary Russell, Artem Bilan
  • Constructor Details

    • SftpStreamingMessageSource

      public SftpStreamingMessageSource(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> template)
      Construct an instance with the supplied template.
      Parameters:
      template - the template.
    • SftpStreamingMessageSource

      public SftpStreamingMessageSource(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> template, Comparator<com.jcraft.jsch.ChannelSftp.LsEntry> 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