org.archive.wayback.resourceindex.filters
Class HostMatchFilter
java.lang.Object
org.archive.wayback.resourceindex.filters.HostMatchFilter
- All Implemented Interfaces:
- ObjectFilter<CaptureSearchResult>
public class HostMatchFilter
- extends Object
- implements ObjectFilter<CaptureSearchResult>
SearchResultFilter which includes only records that have original host
matching.
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
|
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 |
HostMatchFilter
public HostMatchFilter(String hostname,
QueryCaptureFilterGroup annotationTarget)
- Parameters:
hostname - String of original host to match
HostMatchFilter
public HostMatchFilter(String hostname)
- Parameters:
hostname - String of original host to match
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-2011 Internet Archive. All Rights Reserved.