public class TerminatingRegexRule extends RegexRule
Rule.ApplyURI_handling, _terminating| Constructor | Description |
|---|---|
TerminatingRegexRule() |
|
TerminatingRegexRule(java.lang.String regex) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
apply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.regex.Matcher matcher) |
Apply this rule to the request/response pair.
|
void |
setTerminating(boolean terminating) |
Sets terminating to true or false.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRegex, matchAndApply, setRegex, toStringisHandling, isTerminating, setHandlingpublic TerminatingRegexRule()
public TerminatingRegexRule(@Name("regex") java.lang.String regex)
public void setTerminating(boolean terminating)
RulesetTerminating in class Ruleterminating - If true, this rule will terminate the loop if this rule has been applied.public java.lang.String apply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.regex.Matcher matcher)
throws java.io.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).java.io.IOException - exceptions dealing with operating on request or response objectsCopyright © 1995–2018 Webtide. All rights reserved.