Labrador::Dispatcher::URLFilter
use Labrador::Dispatcher::URLFilter::Regexp; my $filter = Labrador::Dispatcher::URLFilter::new( 'Labrador::Dispatcher::URLFilter::Regexp', $config, @param); my $url = 'http://....'; print $filter->filter($url) ? "Good" : "Bad";
This is an abstract base class for URLFilters. Note it is hoped that URLFilters should be proper (repeatable) functions - ie they should return the same result given the same parameters. Hence, a filter() implementation shouldn't have side-effects. Labrador::Dispatcher::Processing loads Memoize, and uses it to cache the result of a URL being filtered. Hence after a URL has been seen once, it may not be seen again.
$Revision: 1.5 $