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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getFilename
(org.apache.sshd.sftp.client.SftpClient.DirEntry entry) Subclasses must implement this method to extract the file's name.protected boolean
isDirectory
(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
accept
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
-
Constructor Details
-
SftpSimplePatternFileListFilter
-
-
Method Details
-
getFilename
Description copied from class:AbstractSimplePatternFileListFilter
Subclasses must implement this method to extract the file's name.- Specified by:
getFilename
in 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:AbstractDirectoryAwareFileListFilter
Subclasses must implement this method to indicate whether the file is a directory or not.- Specified by:
isDirectory
in classAbstractDirectoryAwareFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
- Parameters:
file
- the file.- Returns:
- true if it's a directory.
-