org.mortbay.jetty.handler.rewrite
public class RewritePatternRule extends PatternRule
PathMap path with a fixed string._pattern_handling, _terminating| Constructor and Description |
|---|
RewritePatternRule() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
apply(java.lang.String target,
HttpServletRequest request,
HttpServletResponse response)
Apply the rule to the request
|
void |
setReplacement(java.lang.String value)
Whenever a match is found, it replaces with this value.
|
java.lang.String |
toString()
Returns the replacement string.
|
getPattern, matchAndApply, setPatternisHandling, isTerminating, setHandling, setTerminatingpublic void setReplacement(java.lang.String value)
value - the replacement string.public java.lang.String apply(java.lang.String target,
HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException
PatternRuleapply in class PatternRuletarget - field to attempt matchrequest - request objectresponse - response objectjava.io.IOException - exceptions dealing with operating on request or response objectspublic java.lang.String toString()
toString in class PatternRuleCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.