Class FtpRegexPatternFileListFilter
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.commons.net.ftp.FTPFile>
org.springframework.integration.ftp.filters.FtpRegexPatternFileListFilter
- All Implemented Interfaces:
org.springframework.integration.file.filters.FileListFilter<org.apache.commons.net.ftp.FTPFile>
public class FtpRegexPatternFileListFilter
extends org.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<org.apache.commons.net.ftp.FTPFile>
Implementation of
AbstractRegexPatternFileListFilter
for FTP.- Since:
- 2.0
-
Constructor Summary
Constructors Constructor Description FtpRegexPatternFileListFilter(java.lang.String pattern)
FtpRegexPatternFileListFilter(java.util.regex.Pattern pattern)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
getFilename(org.apache.commons.net.ftp.FTPFile file)
protected boolean
isDirectory(org.apache.commons.net.ftp.FTPFile 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
-
FtpRegexPatternFileListFilter
public FtpRegexPatternFileListFilter(java.lang.String pattern) -
FtpRegexPatternFileListFilter
public FtpRegexPatternFileListFilter(java.util.regex.Pattern pattern)
-
-
Method Details
-
getFilename
protected java.lang.String getFilename(org.apache.commons.net.ftp.FTPFile file)- Specified by:
getFilename
in classorg.springframework.integration.file.filters.AbstractRegexPatternFileListFilter<org.apache.commons.net.ftp.FTPFile>
-
isDirectory
protected boolean isDirectory(org.apache.commons.net.ftp.FTPFile file)- Specified by:
isDirectory
in classorg.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<org.apache.commons.net.ftp.FTPFile>
-