Package org.archive.modules.deciderules
Class ContentLengthDecideRule
java.lang.Object
org.archive.modules.deciderules.DecideRule
org.archive.modules.deciderules.ContentLengthDecideRule
- All Implemented Interfaces:
Serializable
,HasKeyedProperties
- See Also:
-
Field Summary
Fields inherited from class org.archive.modules.deciderules.DecideRule
comment, kp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
protected DecideResult
innerDecide
(CrawlURI uri) void
setContentLengthThreshold
(long threshold) Content-length threshold.Methods inherited from class org.archive.modules.deciderules.DecideRule
accepts, decisionFor, getComment, getEnabled, getKeyedProperties, onlyDecision, setComment, setEnabled
-
Constructor Details
-
ContentLengthDecideRule
public ContentLengthDecideRule()Usual constructor.
-
-
Method Details
-
getContentLengthThreshold
public long getContentLengthThreshold() -
setContentLengthThreshold
public void setContentLengthThreshold(long threshold) Content-length threshold. The rule returns ACCEPT if the content-length is less than this threshold, or REJECT otherwise. The default is 2^63, meaning any document will be accepted. -
innerDecide
- Specified by:
innerDecide
in classDecideRule
-