org.apache.droids.net
Class 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.

Version:
1.0

Field Summary
 
Fields inherited from class org.apache.droids.helper.Loggable
log
 
Constructor Summary
RegexURLFilter()
           
 
Method Summary
 java.lang.String filter(java.lang.String url)
          Transforms the URL: can pass the original URL through or "delete" the URL by returning null
 void setFile(java.lang.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 java.lang.String filter(java.lang.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(java.lang.String file)
             throws java.io.IOException
Parameters:
file -
Throws:
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.