public class CompactPathRule extends Rule implements Rule.ApplyURI
Rule.ApplyURI
_handling, _terminating
Constructor and Description |
---|
CompactPathRule() |
Modifier and Type | Method and Description |
---|---|
void |
applyURI(Request request,
java.lang.String oldURI,
java.lang.String newURI) |
java.lang.String |
matchAndApply(java.lang.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.
|
isHandling, isTerminating, setHandling, setTerminating, toString
public void applyURI(Request request, java.lang.String oldURI, java.lang.String newURI) throws java.io.IOException
applyURI
in interface Rule.ApplyURI
java.io.IOException
public java.lang.String matchAndApply(java.lang.String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
Rule
matchAndApply
in class Rule
target
- The target of the requestrequest
- the requestresponse
- the responsejava.io.IOException
- if unable to match the ruleCopyright © 1995–2023 Webtide. All rights reserved.