Package org.archive.modules.deciderules
Class MatchesRegexDecideRule
java.lang.Object
org.archive.modules.deciderules.DecideRule
org.archive.modules.deciderules.PredicatedDecideRule
org.archive.modules.deciderules.MatchesRegexDecideRule
- All Implemented Interfaces:
Serializable
,org.archive.spring.HasKeyedProperties
- Direct Known Subclasses:
ContentTypeMatchesRegexDecideRule
,FetchStatusMatchesRegexDecideRule
,HopsPathMatchesRegexDecideRule
,MatchesFilePatternDecideRule
,NotMatchesRegexDecideRule
public class MatchesRegexDecideRule extends PredicatedDecideRule
Rule applies configured decision to any CrawlURIs whose String URI
matches the supplied regex.
- Author:
- gojomo
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.archive.modules.deciderules.DecideRule
comment, kp
-
Constructor Summary
Constructors Constructor Description MatchesRegexDecideRule()
Usual constructor. -
Method Summary
Methods inherited from class org.archive.modules.deciderules.PredicatedDecideRule
getDecision, innerDecide, onlyDecision, setDecision
Methods inherited from class org.archive.modules.deciderules.DecideRule
accepts, decisionFor, getComment, getEnabled, getKeyedProperties, setComment, setEnabled
-
Constructor Details
-
MatchesRegexDecideRule
public MatchesRegexDecideRule()Usual constructor.
-
-
Method Details
-
getRegex
-
setRegex
-
evaluate
Evaluate whether given object's string version matches configured regex- Specified by:
evaluate
in classPredicatedDecideRule
- Parameters:
uri
-- Returns:
- true if regex is matched
-
getString
-