public class MatchesListRegexDecideRule extends PredicatedDecideRule
The list of regular expressions can be considered logically AND or OR.
MatchesRegexDecideRule
,
Serialized Formcomment, kp
Constructor and Description |
---|
MatchesListRegexDecideRule()
Usual constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(CrawlURI uri)
Evaluate whether given object's string version
matches configured regexes
|
boolean |
getListLogicalOr() |
List<Pattern> |
getRegexList() |
long |
getTimeoutPerRegexSeconds() |
void |
setListLogicalOr(boolean listLogicalOr)
True if the list of regular expression should be considered as logically
AND when matching.
|
void |
setRegexList(List<Pattern> patterns)
The list of regular expressions to evalute against the URI.
|
void |
setTimeoutPerRegexSeconds(long timeoutPerRegexSeconds)
The timeout for regular expression matching, in seconds.
|
getDecision, innerDecide, onlyDecision, setDecision
accepts, decisionFor, getComment, getEnabled, getKeyedProperties, setComment, setEnabled
public MatchesListRegexDecideRule()
public long getTimeoutPerRegexSeconds()
public void setTimeoutPerRegexSeconds(long timeoutPerRegexSeconds)
public void setRegexList(List<Pattern> patterns)
public boolean getListLogicalOr()
public void setListLogicalOr(boolean listLogicalOr)
protected boolean evaluate(CrawlURI uri)
evaluate
in class PredicatedDecideRule
Copyright © 2003–2022 Internet Archive. All rights reserved.