org.apache.camel.component.file
Class AntPathMatcherGenericFileFilter

java.lang.Object
  extended by org.apache.camel.component.file.AntPathMatcherGenericFileFilter
All Implemented Interfaces:
GenericFileFilter

public class AntPathMatcherGenericFileFilter
extends Object
implements GenericFileFilter

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
AntPathMatcherGenericFileFilter()
           
 
Method Summary
 boolean accept(GenericFile file)
          Tests whether or not the specified generic file should be included
 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

AntPathMatcherGenericFileFilter

public AntPathMatcherGenericFileFilter()
Method Detail

accept

public boolean accept(GenericFile file)
Description copied from interface: GenericFileFilter
Tests whether or not the specified generic file should be included

Specified by:
accept in interface GenericFileFilter
Parameters:
file - the generic file to be tested
Returns:
true if and only if file should be included

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