org.archive.wayback.resourceindex.filters
Class HttpCodeFilter
java.lang.Object
org.archive.wayback.resourceindex.filters.HttpCodeFilter
- All Implemented Interfaces:
- ObjectFilter<CaptureSearchResult>
public class HttpCodeFilter
- extends java.lang.Object
- implements ObjectFilter<CaptureSearchResult>
ObjectFilter which allows including or excluding results based on the
Http response code.
- Version:
- $Date: 2008-10-10 18:59:57 -0700 (Fri, 10 Oct 2008) $, $Rev: 2606 $
- Author:
- brad
|
Method Summary |
int |
filterObject(CaptureSearchResult o)
inpect record and determine if it should be included in the
results or not, or if processing of new records should stop. |
java.util.List<java.lang.String> |
getExcludes()
|
java.util.List<java.lang.String> |
getIncludes()
|
void |
setExcludes(java.util.List<java.lang.String> excludes)
|
void |
setIncludes(java.util.List<java.lang.String> includes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpCodeFilter
public HttpCodeFilter()
getIncludes
public java.util.List<java.lang.String> getIncludes()
setIncludes
public void setIncludes(java.util.List<java.lang.String> includes)
getExcludes
public java.util.List<java.lang.String> getExcludes()
setExcludes
public void setExcludes(java.util.List<java.lang.String> excludes)
filterObject
public int filterObject(CaptureSearchResult o)
- 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:
o - 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.