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<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.filters.SftpSimplePatternFileListFilter
- All Implemented Interfaces:
FileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
public class SftpSimplePatternFileListFilter extends AbstractSimplePatternFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
Implementation of
AbstractSimplePatternFileListFilter for SFTP.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell
-
Constructor Summary
Constructors Constructor Description SftpSimplePatternFileListFilter(String pattern) -
Method Summary
Modifier and Type Method Description protected StringgetFilename(com.jcraft.jsch.ChannelSftp.LsEntry entry)Subclasses must implement this method to extract the file's name.protected booleanisDirectory(com.jcraft.jsch.ChannelSftp.LsEntry 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
-
Method Details
-
getFilename
Description copied from class:AbstractSimplePatternFileListFilterSubclasses must implement this method to extract the file's name.- Specified by:
getFilenamein classAbstractSimplePatternFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>- Parameters:
entry- The file.- Returns:
- The file name.
-
isDirectory
protected boolean isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file)Description copied from class:AbstractDirectoryAwareFileListFilterSubclasses must implement this method to indicate whether the file is a directory or not.- Specified by:
isDirectoryin classAbstractDirectoryAwareFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-