public class RedirectRegexRule extends RegexRule
Rule.ApplyURI_handling, _terminating| Constructor and Description |
|---|
RedirectRegexRule() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
apply(String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Matcher matcher)
Apply this rule to the request/response pair.
|
void |
setReplacement(String replacement)
Whenever a match is found, it replaces with this value.
|
getRegex, matchAndApply, setRegex, toStringisHandling, isTerminating, setHandling, setTerminatingpublic void setReplacement(String replacement)
replacement - the replacement string.protected String apply(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Matcher matcher) throws IOException
RegexRuleRegexRule.matchAndApply(String, HttpServletRequest, HttpServletResponse) if the regex matches.apply in class RegexRuletarget - field to attempt matchrequest - request objectresponse - response objectmatcher - The Regex matcher that matched the request (with capture groups available for replacement).IOException - exceptions dealing with operating on request or response objectsCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.