Class NotMatchesFilePatternDecideRule

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

public class NotMatchesFilePatternDecideRule
extends MatchesFilePatternDecideRule
Rule applies configured decision to any URIs which do *not* match the supplied (file-pattern) regex.
Author:
gojomo
See Also:
Serialized Form
  • Constructor Details

    • NotMatchesFilePatternDecideRule

      public NotMatchesFilePatternDecideRule()
      Usual constructor.
  • Method Details

    • evaluate

      protected boolean evaluate​(CrawlURI uri)
      Evaluate whether given object's string version does not match configured regex (by reversing the superclass's answer).
      Overrides:
      evaluate in class MatchesRegexDecideRule
      Parameters:
      uri - CrawlURI to make decision about.
      Returns:
      true if the regex is not matched