Class TerminatingPatternRule


  • public class TerminatingPatternRule
    extends PatternRule
    If this rule matches, terminate the processing of other rules. Allowing the request to be processed by the handlers after the rewrite rules.
    • Constructor Detail

      • TerminatingPatternRule

        public TerminatingPatternRule()
      • TerminatingPatternRule

        public TerminatingPatternRule​(java.lang.String pattern)
    • Method Detail

      • setTerminating

        public void setTerminating​(boolean terminating)
        Description copied from class: Rule
        Sets terminating to true or false.
        Overrides:
        setTerminating in class Rule
        Parameters:
        terminating - If true, this rule will terminate the loop if this rule has been applied.
      • apply

        protected java.lang.String apply​(java.lang.String target,
                                         javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response)
                                  throws java.io.IOException
        Description copied from class: PatternRule
        Apply the rule to the request
        Specified by:
        apply in class PatternRule
        Parameters:
        target - field to attempt match
        request - request object
        response - response object
        Returns:
        The target (possible updated)
        Throws:
        java.io.IOException - exceptions dealing with operating on request or response objects