org.archive.wayback.resourceindex.filters
Class SelfRedirectFilter

java.lang.Object
  extended by org.archive.wayback.resourceindex.filters.SelfRedirectFilter
All Implemented Interfaces:
ObjectFilter<CaptureSearchResult>

public class SelfRedirectFilter
extends Object
implements ObjectFilter<CaptureSearchResult>

SearchResultFilter which INCLUDEs all records, unless they redirect to themselves, via whatever URL purification schemes are in use.

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
 
Fields inherited from interface org.archive.wayback.util.ObjectFilter
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE
 
Constructor Summary
SelfRedirectFilter()
           
SelfRedirectFilter(UrlCanonicalizer canonicalizer)
           
 
Method Summary
 int filterObject(CaptureSearchResult r)
          inpect record and determine if it should be included in the results or not, or if processing of new records should stop.
 UrlCanonicalizer getCanonicalizer()
           
 void setCanonicalizer(UrlCanonicalizer canonicalizer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfRedirectFilter

public SelfRedirectFilter()

SelfRedirectFilter

public SelfRedirectFilter(UrlCanonicalizer canonicalizer)
Method Detail

filterObject

public int filterObject(CaptureSearchResult r)
Description copied from interface: ObjectFilter
inpect record and determine if it should be included in the results or not, or if processing of new records should stop.

Specified by:
filterObject in interface ObjectFilter<CaptureSearchResult>
Parameters:
r - Object which should be checked for inclusion/exclusion or abort
Returns:
int of FILTER_INCLUDE, FILTER_EXCLUDE, or FILTER_ABORT

getCanonicalizer

public UrlCanonicalizer getCanonicalizer()

setCanonicalizer

public void setCanonicalizer(UrlCanonicalizer canonicalizer)


Copyright © 2005-2011 Internet Archive. All Rights Reserved.