org.mortbay.jetty.handler.rewrite
public class LegacyRule extends Rule
_handling, _terminating
Constructor and Description |
---|
LegacyRule() |
Modifier and Type | Method and Description |
---|---|
void |
addRewriteRule(String pattern,
String prefix)
Add a path rewriting rule
|
org.mortbay.jetty.servlet.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(org.mortbay.jetty.servlet.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
- TODOpublic org.mortbay.jetty.servlet.PathMap getRewrite()
PathMap
of the rewriting rules.public void setRewrite(org.mortbay.jetty.servlet.PathMap rewrite)
rewrite
- A PathMap
of the rewriting rules. Only
prefix paths should be included.Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.