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, wait
getRegex, matchAndApply, setRegex, toString
isHandling, isTerminating, setHandling
public TerminatingRegexRule()
public TerminatingRegexRule(@Name("regex") java.lang.String regex)
public void setTerminating(boolean terminating)
Rule
setTerminating
in class Rule
terminating
- 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
RegexRule
RegexRule.matchAndApply(String, HttpServletRequest, HttpServletResponse)
if the regex matches.apply
in class RegexRule
target
- 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.