public class MatchesRegexDecideRule extends PredicatedDecideRule
comment, kp
Constructor and Description |
---|
MatchesRegexDecideRule()
Usual constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(CrawlURI uri)
Evaluate whether given object's string version
matches configured regex
|
Pattern |
getRegex() |
protected String |
getString(CrawlURI uri) |
void |
setRegex(Pattern regex) |
getDecision, innerDecide, onlyDecision, setDecision
accepts, decisionFor, getComment, getEnabled, getKeyedProperties, setComment, setEnabled
public Pattern getRegex()
public void setRegex(Pattern regex)
protected boolean evaluate(CrawlURI uri)
evaluate
in class PredicatedDecideRule
uri
- Copyright © 2003–2021 Internet Archive. All rights reserved.