Spring Integration

org.springframework.integration.file.filters
Class AbstractSimplePatternFileListFilter<F>

java.lang.Object
  extended by org.springframework.integration.file.filters.AbstractFileListFilter<F>
      extended by org.springframework.integration.file.filters.AbstractSimplePatternFileListFilter<F>
All Implemented Interfaces:
FileListFilter<F>
Direct Known Subclasses:
FtpSimplePatternFileListFilter, SftpSimplePatternFileListFilter, SimplePatternFileListFilter

public abstract class AbstractSimplePatternFileListFilter<F>
extends AbstractFileListFilter<F>

Base class for filters that support ant style path expressions, which are less powerful but more readable than regular expressions. This filter only filters on the name of the file, the rest of the path is ignored.

Since:
2.0
Author:
Iwein Fuld, Mark Fisher
See Also:
AntPathMatcher, AbstractRegexPatternFileListFilter

Constructor Summary
AbstractSimplePatternFileListFilter(java.lang.String path)
           
 
Method Summary
 boolean accept(F file)
          Accepts the given file if its name matches the pattern.
protected abstract  java.lang.String getFilename(F file)
          Subclasses must implement this method to extract the file's name.
 
Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSimplePatternFileListFilter

public AbstractSimplePatternFileListFilter(java.lang.String path)
Method Detail

accept

public final boolean accept(F file)
Accepts the given file if its name matches the pattern.

Specified by:
accept in class AbstractFileListFilter<F>

getFilename

protected abstract java.lang.String getFilename(F file)
Subclasses must implement this method to extract the file's name.


Spring Integration