Class ContentLengthDecideRule

java.lang.Object
org.archive.modules.deciderules.DecideRule
org.archive.modules.deciderules.ContentLengthDecideRule
All Implemented Interfaces:
Serializable, HasKeyedProperties

public class ContentLengthDecideRule extends DecideRule
See Also:
  • 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

      protected DecideResult innerDecide(CrawlURI uri)
      Specified by:
      innerDecide in class DecideRule