org.archive.wayback.accesscontrol.remote
Class RemoteExclusionFilter

java.lang.Object
  extended by org.archive.wayback.accesscontrol.remote.RemoteExclusionFilter
All Implemented Interfaces:
ObjectFilter<CaptureSearchResult>

public class RemoteExclusionFilter
extends java.lang.Object
implements ObjectFilter<CaptureSearchResult>

SearchResultFilter which uses remote access control/exclusion service to filter results.

Version:
$Date: 2006-10-17 15:21:15 -0700 (Tue, 17 Oct 2006) $, $Revision: 1276 $
Author:
brad

Field Summary
 
Fields inherited from interface org.archive.wayback.util.ObjectFilter
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE
 
Constructor Summary
RemoteExclusionFilter(java.lang.String urlPrefix, java.lang.String userAgent)
          Constructor
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteExclusionFilter

public RemoteExclusionFilter(java.lang.String urlPrefix,
                             java.lang.String userAgent)
Constructor

Parameters:
urlPrefix - String prefix for remote exclusion service
userAgent - String user agent to send to remote exclusion service
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


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