public class LegacyRule extends Rule
Rule.ApplyURI_handling, _terminating| Constructor and Description |
|---|
LegacyRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRewriteRule(String pattern,
String prefix)
Add a path rewriting rule
|
PathMap |
getRewrite()
Returns the map of rewriting rules.
|
String |
matchAndApply(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.
|
void |
setRewrite(PathMap rewrite)
Sets the map of rewriting rules.
|
isHandling, isTerminating, setHandling, setTerminating, toStringpublic String matchAndApply(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
RulematchAndApply in class Ruletarget - The target of the requestIOException - TODOpublic PathMap getRewrite()
PathMap of the rewriting rules.public void setRewrite(PathMap rewrite)
rewrite - A PathMap of the rewriting rules. Only
prefix paths should be included.Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.