Class TerminatingPatternRule


public class TerminatingPatternRule extends PatternRule

If this rule matches, terminates the processing of other rules, allowing the request to be processed by the handlers after the RewriteHandler.

  • Constructor Details

    • TerminatingPatternRule

      public TerminatingPatternRule()
    • TerminatingPatternRule

      public TerminatingPatternRule(String pattern)
  • Method Details

    • isTerminating

      public boolean isTerminating()
      Overrides:
      isTerminating in class Rule
      Returns:
      whether rules after this one are not invoked
    • apply

      protected Rule.Handler apply(Rule.Handler input) throws IOException
      Description copied from class: PatternRule

      Invoked after the Servlet pattern matched the URI path to apply the rule's logic.

      Specified by:
      apply in class PatternRule
      Parameters:
      input - the input Request and Handler
      Returns:
      the possibly wrapped Request and Handler
      Throws:
      IOException - if applying the rule failed