Package org.archive.modules.deciderules
Class PredicatedDecideRule
java.lang.Object
org.archive.modules.deciderules.DecideRule
org.archive.modules.deciderules.PredicatedDecideRule
- All Implemented Interfaces:
Serializable
,org.archive.spring.HasKeyedProperties
- Direct Known Subclasses:
AddRedirectFromRootServerToScope
,ExternalGeoLocationDecideRule
,FetchStatusDecideRule
,HasViaDecideRule
,HopCrossesAssignmentLevelDomainDecideRule
,IdenticalDigestDecideRule
,IpAddressSetDecideRule
,MatchesListRegexDecideRule
,MatchesRegexDecideRule
,MatchesStatusCodeDecideRule
,ResourceNoLongerThanDecideRule
,ResponseContentLengthDecideRule
,SchemeNotInSetDecideRule
,SourceSeedDecideRule
,SurtPrefixedDecideRule
,TooManyHopsDecideRule
,TooManyPathSegmentsDecideRule
,TransclusionDecideRule
,ViaSurtPrefixedDecideRule
public abstract class PredicatedDecideRule extends DecideRule
Rule which applies the configured decision only if a
test evaluates to true. Subclasses override evaluate()
to establish the test.
- Author:
- gojomo
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.archive.modules.deciderules.DecideRule
comment, kp
-
Constructor Summary
Constructors Constructor Description PredicatedDecideRule()
-
Method Summary
Modifier and Type Method Description protected abstract boolean
evaluate(CrawlURI object)
DecideResult
getDecision()
protected DecideResult
innerDecide(CrawlURI uri)
DecideResult
onlyDecision(CrawlURI uri)
void
setDecision(DecideResult decision)
Methods inherited from class org.archive.modules.deciderules.DecideRule
accepts, decisionFor, getComment, getEnabled, getKeyedProperties, setComment, setEnabled
-
Constructor Details
-
PredicatedDecideRule
public PredicatedDecideRule()
-
-
Method Details
-
getDecision
-
setDecision
-
innerDecide
- Specified by:
innerDecide
in classDecideRule
-
onlyDecision
- Overrides:
onlyDecision
in classDecideRule
-
evaluate
-