public abstract class PatternRule extends Rule
PathMap
for pattern matching. It uses the
servlet pattern syntax.Rule.ApplyURI
Modifier and Type | Field and Description |
---|---|
protected String |
_pattern |
_handling, _terminating
Constructor and Description |
---|
PatternRule() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
apply(String target,
HttpServletRequest request,
HttpServletResponse response)
Apply the rule to the request
|
String |
getPattern() |
String |
matchAndApply(String target,
HttpServletRequest request,
HttpServletResponse response)
This method calls tests the rule against the request/response pair and if the Rule
applies, then the rule's action is triggered.
|
void |
setPattern(String pattern)
Sets the rule pattern.
|
String |
toString()
Returns the rule pattern.
|
isHandling, isTerminating, setHandling, setTerminating
protected String _pattern
public String getPattern()
public void setPattern(String pattern)
pattern
- the patternpublic String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException
Rule
matchAndApply
in class Rule
target
- The target of the requestIOException
protected abstract String apply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException
target
- field to attempt matchrequest
- request objectresponse
- response objectIOException
- exceptions dealing with operating on request or response objectsCopyright © 1995-2015 Webtide. All Rights Reserved.