org.apache.droids.helper.factories
Class URLFiltersFactory
java.lang.Object
org.apache.droids.helper.factories.GenericFactory<URLFilter>
org.apache.droids.helper.factories.URLFiltersFactory
public class URLFiltersFactory
- extends GenericFactory<URLFilter>
Factory that will traverse all registered filter and execute them.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLFiltersFactory
public URLFiltersFactory()
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 testfilterName
- -
name of the specific filter class.
- Returns:
- true if filter plugin accept the url, false if excluded.
Copyright © 2008 The Apache Software Foundation