org.apache.camel.spring.util
Class SpringAntPathMatcherFileFilter

java.lang.Object
  extended by org.apache.camel.spring.util.SpringAntPathMatcherFileFilter
All Implemented Interfaces:
FileFilter

public class SpringAntPathMatcherFileFilter
extends Object
implements FileFilter

File filter using Spring's AntPathMatcher.

Exclude take precedence over includes. If a file match both exclude and include it will be regarded as excluded.


Constructor Summary
SpringAntPathMatcherFileFilter()
           
 
Method Summary
 boolean accept(File pathname)
           
 boolean acceptPathName(String path)
          Accepts the given file by the path name
 String[] getExcludes()
           
 String[] getIncludes()
           
 void setExcludes(String excludes)
          Sets excludes using a single string where each element can be separated with comma
 void setExcludes(String[] excludes)
           
 void setIncludes(String includes)
          Sets includes using a single string where each element can be separated with comma
 void setIncludes(String[] includes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringAntPathMatcherFileFilter

public SpringAntPathMatcherFileFilter()
Method Detail

accept

public boolean accept(File pathname)
Specified by:
accept in interface FileFilter

acceptPathName

public boolean acceptPathName(String path)
Accepts the given file by the path name

Parameters:
path - the path
Returns:
true if accepted, false if not

getExcludes

public String[] getExcludes()

setExcludes

public void setExcludes(String[] excludes)

getIncludes

public String[] getIncludes()

setIncludes

public void setIncludes(String[] includes)

setExcludes

public void setExcludes(String excludes)
Sets excludes using a single string where each element can be separated with comma


setIncludes

public void setIncludes(String includes)
Sets includes using a single string where each element can be separated with comma



Apache CAMEL