Class RewritePatternRule
java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.PatternRule
org.eclipse.jetty.rewrite.handler.RewritePatternRule
A rule to rewrite the path and query that match a Servlet pattern with a fixed string.
-
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) Invoked after the Servlet pattern matched the URI path to apply the rule's logic.void
setReplacement
(String replacement) The replacement for the path and query matched by this rule.toString()
Methods inherited from class org.eclipse.jetty.rewrite.handler.PatternRule
getPattern, matchAndApply, setPattern
Methods inherited from class org.eclipse.jetty.rewrite.handler.Rule
isTerminating, setTerminating
-
Constructor Details
-
RewritePatternRule
public RewritePatternRule() -
RewritePatternRule
-
-
Method Details
-
setReplacement
The replacement for the path and query matched by this rule.
- Parameters:
replacement
- the replacement path
-
apply
Description copied from class:PatternRule
Invoked after the Servlet pattern matched the URI path to apply the rule's logic.
- Specified by:
apply
in classPatternRule
- Parameters:
input
- the inputRequest
andHandler
- Returns:
- the possibly wrapped
Request
andHandler
- Throws:
IOException
- if applying the rule failed
-
toString
- Overrides:
toString
in classPatternRule
-