Class SftpSimplePatternFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractSimplePatternFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.filters.SftpSimplePatternFileListFilter
- All Implemented Interfaces:
FileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
public class SftpSimplePatternFileListFilter
extends AbstractSimplePatternFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
Implementation of
AbstractSimplePatternFileListFilter for SFTP.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilename(org.apache.sshd.sftp.client.SftpClient.DirEntry entry) Subclasses must implement this method to extract the file's name.protected booleanisDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file) Subclasses must implement this method to indicate whether the file is a directory or not.Methods inherited from class org.springframework.integration.file.filters.AbstractSimplePatternFileListFilter
acceptMethods inherited from class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter
alwaysAccept, isForRecursion, setAlwaysAcceptDirectories, setForRecursionMethods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, supportsSingleFileFiltering
-
Constructor Details
-
SftpSimplePatternFileListFilter
-
-
Method Details
-
getFilename
Description copied from class:AbstractSimplePatternFileListFilterSubclasses must implement this method to extract the file's name.- Specified by:
getFilenamein classAbstractSimplePatternFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>- Parameters:
entry- The file.- Returns:
- The file name.
-
isDirectory
protected boolean isDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file) Description copied from class:AbstractDirectoryAwareFileListFilterSubclasses must implement this method to indicate whether the file is a directory or not.- Specified by:
isDirectoryin classAbstractDirectoryAwareFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-