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,
HttpServletRequest request,
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, toString
public String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException
Rule
matchAndApply
in class Rule
target
- The target of the requestIOException
public 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 Webtide. All Rights Reserved.