org.apache.camel.component.file
Class AntPathMatcherGenericFileFilter<T>

java.lang.Object
  extended by org.apache.camel.component.file.AntPathMatcherGenericFileFilter<T>
Type Parameters:
T -
All Implemented Interfaces:
CamelContextAware, GenericFileFilter<T>

public class AntPathMatcherGenericFileFilter<T>
extends Object
implements GenericFileFilter<T>, CamelContextAware

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<T> file)
          Tests whether or not the specified generic file should be included
 CamelContext getCamelContext()
          Get the CamelContext
 String[] getExcludes()
           
 String[] getIncludes()
           
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 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<T> file)
Description copied from interface: GenericFileFilter
Tests whether or not the specified generic file should be included

Specified by:
accept in interface GenericFileFilter<T>
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


setCamelContext

public void setCamelContext(CamelContext camelContext)
Description copied from interface: CamelContextAware
Injects the CamelContext

Specified by:
setCamelContext in interface CamelContextAware
Parameters:
camelContext - the Camel context

getCamelContext

public CamelContext getCamelContext()
Description copied from interface: CamelContextAware
Get the CamelContext

Specified by:
getCamelContext in interface CamelContextAware
Returns:
camelContext the Camel context


Apache CAMEL