public class NotMatchesStatusCodeDecideRule extends PredicatedDecideRule
Modifier and Type | Field and Description |
---|---|
static Integer |
DEFAULT_LOWER_BOUND
Default lower bound
|
static Integer |
DEFAULT_UPPER_BOUND
Default upper bound
|
comment, kp
Constructor and Description |
---|
NotMatchesStatusCodeDecideRule()
Creates a new NotMatchesStatusCodeDecideRule instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(CrawlURI uri)
Returns "true" if the provided CrawlURI has a fetch status that does not
fall within this instance's specified range.
|
Integer |
getLowerBound()
Returns the lower bound on the range of acceptable status codes.
|
Integer |
getUpperBound()
Returns the upper bound on the range of acceptable status codes.
|
void |
setLowerBound(Integer statusCode)
Sets the lower bound on the range of acceptable status codes.
|
void |
setUpperBound(Integer statusCode)
Sets the upper bound on the range of acceptable status codes.
|
getDecision, innerDecide, setDecision
accepts, decisionFor, getComment, getEnabled, getKeyedProperties, onlyDecision, setComment, setEnabled
public static final Integer DEFAULT_LOWER_BOUND
public static final Integer DEFAULT_UPPER_BOUND
public NotMatchesStatusCodeDecideRule()
public void setLowerBound(Integer statusCode)
Integer
- Status codepublic Integer getLowerBound()
public void setUpperBound(Integer statusCode)
Integer
- Status codepublic Integer getUpperBound()
protected boolean evaluate(CrawlURI uri)
evaluate
in class PredicatedDecideRule
CrawlURI
- The URI to be evaluatedCopyright © 2003-2014 Internet Archive. All Rights Reserved.