Class SftpRegexPatternFileListFilter

java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.filters.SftpRegexPatternFileListFilter
All Implemented Interfaces:
org.springframework.integration.file.filters.FileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>

public class SftpRegexPatternFileListFilter extends org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
Implementation of AbstractRegexPatternFileListFilter for SFTP.
Since:
2.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    getFilename(org.apache.sshd.sftp.client.SftpClient.DirEntry entry)
     
    protected boolean
    isDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file)
     

    Methods inherited from class org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter

    accept, setPattern, setPattern

    Methods inherited from class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter

    alwaysAccept, isForRecursion, setAlwaysAcceptDirectories, setForRecursion

    Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter

    filterFiles, supportsSingleFileFiltering

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SftpRegexPatternFileListFilter

      public SftpRegexPatternFileListFilter(String pattern)
    • SftpRegexPatternFileListFilter

      public SftpRegexPatternFileListFilter(Pattern pattern)
  • Method Details

    • getFilename

      protected String getFilename(org.apache.sshd.sftp.client.SftpClient.DirEntry entry)
      Specified by:
      getFilename in class org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
    • isDirectory

      protected boolean isDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file)
      Specified by:
      isDirectory in class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>