Class SchemeNotInSetDecideRule

All Implemented Interfaces:
Serializable, HasKeyedProperties

public class SchemeNotInSetDecideRule extends PredicatedDecideRule
Rule applies the configured decision (default REJECT) for any URI which has a URI-scheme NOT contained in the configured Set.
Author:
gojomo
See Also:
  • Field Details

    • schemes

      protected Set<String> schemes
      set of schemes to test URI scheme
  • Constructor Details

    • SchemeNotInSetDecideRule

      public SchemeNotInSetDecideRule()
      Usual constructor.
  • Method Details

    • getSchemes

      public Set<String> getSchemes()
    • setSchemes

      public void setSchemes(Set<String> schemes)
    • evaluate

      protected boolean evaluate(CrawlURI uri)
      Evaluate whether given object is over the threshold number of hops.
      Specified by:
      evaluate in class PredicatedDecideRule