public class TerminatingRegexRule extends RegexRule
Rule.ApplyURI
_handling, _terminating
Constructor and Description |
---|
TerminatingRegexRule() |
TerminatingRegexRule(String regex) |
Modifier and Type | Method and Description |
---|---|
String |
apply(String target,
HttpServletRequest request,
HttpServletResponse response,
Matcher matcher)
Apply this rule to the request/response pair.
|
void |
setTerminating(boolean terminating)
Sets terminating to true or false.
|
getRegex, matchAndApply, setRegex, toString
isHandling, isTerminating, setHandling
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 String apply(String target, HttpServletRequest request, HttpServletResponse response, Matcher matcher) throws 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).IOException
- exceptions dealing with operating on request or response objectsCopyright © 1995-2016 Webtide. All Rights Reserved.