Class CompactPathRule
java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.CompactPathRule
- All Implemented Interfaces:
- Rule.ApplyURI
Rewrite the URI by compacting to remove //
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.jetty.rewrite.handler.RuleRule.ApplyURI
- 
Field SummaryFields inherited from class org.eclipse.jetty.rewrite.handler.Rule_handling, _terminating
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidmatchAndApply(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) This method calls tests the rule against the request/response pair and if the Rule applies, then the rule's action is triggered.Methods inherited from class org.eclipse.jetty.rewrite.handler.RuleisHandling, isTerminating, setHandling, setTerminating, toString
- 
Constructor Details- 
CompactPathRulepublic CompactPathRule()
 
- 
- 
Method Details- 
applyURI- Specified by:
- applyURIin interface- Rule.ApplyURI
 
- 
matchAndApplypublic String matchAndApply(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException Description copied from class:RuleThis method calls tests the rule against the request/response pair and if the Rule applies, then the rule's action is triggered.- Specified by:
- matchAndApplyin class- Rule
- Parameters:
- target- The target of the request
- request- the request
- response- the response
- Returns:
- The new target if the rule has matched, else null
- Throws:
- IOException- if unable to match the rule
 
 
-