org.apache.droids.net
Class RegexURLFilter

Package class diagram package RegexURLFilter
java.lang.Object
  extended by org.apache.droids.helper.Loggable
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.droids.helper.Loggable
log
 
Constructor Summary
RegexURLFilter()
           
 
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
 

Constructor Detail

RegexURLFilter

public RegexURLFilter()
Method Detail

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