Class FtpStreamingMessageSource

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

public class FtpStreamingMessageSource extends AbstractRemoteFileStreamingMessageSource<org.apache.commons.net.ftp.FTPFile>
Message source for streaming FTP remote file contents.
Since:
4.3
Author:
Gary Russell, Artem Bilan
  • Constructor Details

    • FtpStreamingMessageSource

      public FtpStreamingMessageSource(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> template)
      Construct an instance with the supplied template.
      Parameters:
      template - the template.
    • FtpStreamingMessageSource

      public FtpStreamingMessageSource(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> template, Comparator<org.apache.commons.net.ftp.FTPFile> 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