Class TooManyPathSegmentsDecideRule

All Implemented Interfaces:
Serializable, org.archive.spring.HasKeyedProperties

public class TooManyPathSegmentsDecideRule
extends PredicatedDecideRule
Rule REJECTs any CrawlURIs whose total number of path-segments (as indicated by the count of '/' characters not including the first '//') is over a given threshold.
Author:
gojomo
See Also:
Serialized Form
  • Constructor Details

    • TooManyPathSegmentsDecideRule

      public TooManyPathSegmentsDecideRule()
      Usual constructor.
  • Method Details

    • getMaxPathDepth

      public int getMaxPathDepth()
    • setMaxPathDepth

      public void setMaxPathDepth​(int maxPathDepth)
    • evaluate

      protected boolean evaluate​(CrawlURI curi)
      Evaluate whether given object is over the threshold number of path-segments.
      Specified by:
      evaluate in class PredicatedDecideRule
      Parameters:
      curi -
      Returns:
      true if the path-segments is exceeded