dk.netarkivet.wayback.accesscontrol
Class RegExpExclusionFilter

java.lang.Object
  extended by org.archive.wayback.resourceindex.filters.ExclusionFilter
      extended by dk.netarkivet.wayback.accesscontrol.RegExpExclusionFilter
All Implemented Interfaces:
org.archive.wayback.util.ObjectFilter<org.archive.wayback.core.CaptureSearchResult>

public class RegExpExclusionFilter
extends org.archive.wayback.resourceindex.filters.ExclusionFilter


Field Summary
(package private)  java.util.Collection<java.util.regex.Pattern> regexps
          The regexps to be used as the exclusion filter.
 
Fields inherited from class org.archive.wayback.resourceindex.filters.ExclusionFilter
filterGroup
 
Fields inherited from interface org.archive.wayback.util.ObjectFilter
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE
 
Constructor Summary
RegExpExclusionFilter(java.util.Collection<java.util.regex.Pattern> regexps)
          Creates an exclusion filter which will filter out any search result for which the original url matches any of the specified regular expression.
 
Method Summary
 int filterObject(org.archive.wayback.core.CaptureSearchResult captureSearchResult)
           
 
Methods inherited from class org.archive.wayback.resourceindex.filters.ExclusionFilter
setFilterGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regexps

java.util.Collection<java.util.regex.Pattern> regexps
The regexps to be used as the exclusion filter.

Constructor Detail

RegExpExclusionFilter

public RegExpExclusionFilter(java.util.Collection<java.util.regex.Pattern> regexps)
Creates an exclusion filter which will filter out any search result for which the original url matches any of the specified regular expression.

Parameters:
regexps - The regular expressions to match.
Method Detail

filterObject

public int filterObject(org.archive.wayback.core.CaptureSearchResult captureSearchResult)