org.apache.droids.helper.factories
Class URLFiltersFactory

Package class diagram package URLFiltersFactory
java.lang.Object
  extended by org.apache.droids.helper.factories.GenericFactory<URLFilter>
      extended by org.apache.droids.helper.factories.URLFiltersFactory

public class URLFiltersFactory
extends GenericFactory<URLFilter>

Factory that will traverse all registered filter and execute them.


Field Summary
 
Fields inherited from class org.apache.droids.helper.factories.GenericFactory
log
 
Constructor Summary
URLFiltersFactory()
           
 
Method Summary
 boolean accept(String urlString)
          Run all defined filters.
 boolean accept(String urlString, String filterName)
          Run a specific filter class.
 
Methods inherited from class org.apache.droids.helper.factories.GenericFactory
getMap, resolve, setMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLFiltersFactory

public URLFiltersFactory()
Method Detail

accept

public boolean accept(String urlString)
Run all defined filters. Assume logical AND.

Parameters:
urlString - - url to test
Returns:
true if filter plugin accept the url, false if excluded.

accept

public boolean accept(String urlString,
                      String filterName)
Run a specific filter class.

Parameters:
urlString - - url to test
filterName - - name of the specific filter class.
Returns:
true if filter plugin accept the url, false if excluded.


Copyright © 2008 The Apache Software Foundation