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<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.filters.SftpRegexPatternFileListFilter
- All Implemented Interfaces:
org.springframework.integration.file.filters.FileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
public class SftpRegexPatternFileListFilter
extends org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
Implementation of
AbstractRegexPatternFileListFilter
for SFTP.- Since:
- 2.0
-
Constructor Summary
Constructors Constructor Description SftpRegexPatternFileListFilter(java.lang.String pattern)
SftpRegexPatternFileListFilter(java.util.regex.Pattern pattern)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
getFilename(com.jcraft.jsch.ChannelSftp.LsEntry entry)
protected boolean
isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry 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
-
Constructor Details
-
SftpRegexPatternFileListFilter
public SftpRegexPatternFileListFilter(java.lang.String pattern) -
SftpRegexPatternFileListFilter
public SftpRegexPatternFileListFilter(java.util.regex.Pattern pattern)
-
-
Method Details
-
getFilename
protected java.lang.String getFilename(com.jcraft.jsch.ChannelSftp.LsEntry entry)- Specified by:
getFilename
in classorg.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
-
isDirectory
protected boolean isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file)- Specified by:
isDirectory
in classorg.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
-