java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.CompactPathRule
Rewrites the URI by compacting to remove occurrences of //.
For example, //foo/bar//baz is compacted to /foo/bar/baz.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.rewrite.handler.Rule
Rule.Handler, Rule.HttpURIHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmatchAndApply(Rule.Handler input) Tests whether the givenRequestshould apply, and if so the rule logic is triggered.Methods inherited from class org.eclipse.jetty.rewrite.handler.Rule
isTerminating, setTerminating, toString
-
Constructor Details
-
CompactPathRule
public CompactPathRule()
-
-
Method Details
-
matchAndApply
Description copied from class:RuleTests whether the given
Requestshould apply, and if so the rule logic is triggered.- Specified by:
matchAndApplyin classRule- Parameters:
input- the inputRequestandHandler- Returns:
- the possibly wrapped
RequestandHandler, ornullif the rule did not match - Throws:
IOException- if applying the rule failed
-