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 Rule
Rule.Handler, Rule.HttpURIHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Rule.Handler input) Invoked after the Servlet pattern matched the URI path to apply the rule's logic.voidsetReplacement(String replacement) The replacement for the path and query matched by this rule.toString()Methods inherited from class PatternRule
getPattern, matchAndApply, setPatternMethods inherited from class 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:PatternRuleInvoked after the Servlet pattern matched the URI path to apply the rule's logic.
- Specified by:
applyin classPatternRule- Parameters:
input- the inputRequestandHandler- Returns:
- the possibly wrapped
RequestandHandler - Throws:
IOException- if applying the rule failed
-
toString
- Overrides:
toStringin classPatternRule
-