org.apache.droids.net
Class RegexURLFilter
java.lang.Object
org.apache.droids.helper.Loggable
org.apache.droids.net.RegexURLFilter
- All Implemented Interfaces:
- URLFilter
public class RegexURLFilter
- extends Loggable
- implements URLFilter
Regular expression implementation of an UrlFilter. Evaluates the url based on
regular expression.
Fields inherited from class org.apache.droids.helper.Loggable |
log |
Method Summary |
String |
filter(String url)
Transforms the URL: can pass the original URL through or "delete" the URL
by returning null |
void |
setFile(String file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexURLFilter
public RegexURLFilter()
filter
public String filter(String url)
- Description copied from interface:
URLFilter
- Transforms the URL: can pass the original URL through or "delete" the URL
by returning null
- Specified by:
filter
in interface URLFilter
- Parameters:
url
- the url to filter
- Returns:
- null if the filter excluses the url or the url again if allowed
setFile
public void setFile(String file)
- Parameters:
file
-
Copyright © 2008 The Apache Software Foundation