Class TerminatingRegexRule
java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.RegexRule
org.eclipse.jetty.rewrite.handler.TerminatingRegexRule
If this rule matches, terminate the processing of other rules.
Allowing the request to be processed by the handlers after the rewrite rules.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.rewrite.handler.Rule
Rule.Handler, Rule.HttpURIHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Rule.Handler input, Matcher matcher) Invoked after the regular expression matched the URI path to apply the rule's logic.boolean
Methods inherited from class org.eclipse.jetty.rewrite.handler.RegexRule
getRegex, matchAndApply, setRegex, toString
Methods inherited from class org.eclipse.jetty.rewrite.handler.Rule
setTerminating
-
Constructor Details
-
TerminatingRegexRule
public TerminatingRegexRule() -
TerminatingRegexRule
-
-
Method Details
-
isTerminating
public boolean isTerminating()- Overrides:
isTerminating
in classRule
- Returns:
- whether rules after this one are not invoked
-
apply
Description copied from class:RegexRule
Invoked after the regular expression matched the URI path to apply the rule's logic.
- Specified by:
apply
in classRegexRule
- Parameters:
input
- the inputRequest
andHandler
matcher
- theMatcher
that matched the request path, with capture groups available for replacement.- Returns:
- the possibly wrapped
Request
andHandler
- Throws:
IOException
- if applying the rule failed
-