Package org.archive.modules.deciderules
Class FetchStatusDecideRule
java.lang.Object
org.archive.modules.deciderules.DecideRule
org.archive.modules.deciderules.PredicatedDecideRule
org.archive.modules.deciderules.FetchStatusDecideRule
- All Implemented Interfaces:
Serializable
,org.archive.spring.HasKeyedProperties
public class FetchStatusDecideRule extends PredicatedDecideRule
Rule applies the configured decision for any URI which has a
fetch status equal to the 'target-status' setting.
- Author:
- gojomo
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected List<Integer>
statusCodes
Fields inherited from class org.archive.modules.deciderules.DecideRule
comment, kp
-
Constructor Summary
Constructors Constructor Description FetchStatusDecideRule()
Usual constructor. -
Method Summary
Modifier and Type Method Description protected boolean
evaluate(CrawlURI uri)
Evaluate whether given object is equal to the configured statusList<Integer>
getStatusCodes()
void
setStatusCodes(List<Integer> codes)
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
-
Field Details
-
statusCodes
-
-
Constructor Details
-
FetchStatusDecideRule
public FetchStatusDecideRule()Usual constructor.
-
-
Method Details
-
getStatusCodes
-
setStatusCodes
-
evaluate
Evaluate whether given object is equal to the configured status- Specified by:
evaluate
in classPredicatedDecideRule
-