public abstract class Rule extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Rule.ApplyURI
Interface used to apply a changed target if
RuleContainer.setRewriteRequestURI(boolean) is true. |
Modifier and Type | Field and Description |
---|---|
protected boolean |
_handling |
protected boolean |
_terminating |
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
boolean |
isHandling()
Returns the handling flag value.
|
boolean |
isTerminating()
Returns the terminating flag value.
|
abstract 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 |
setHandling(boolean handling)
Set the handling flag value.
|
void |
setTerminating(boolean terminating)
Sets terminating to true or false.
|
String |
toString()
Returns the handling and terminating flag values.
|
public abstract String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException
target
- The target of the requestrequest
- response
- IOException
public void setTerminating(boolean terminating)
terminating
- public boolean isTerminating()
true
if the rule needs to terminate; false
otherwise.public boolean isHandling()
true
if the rule handles the request and nested handlers should not be called.public void setHandling(boolean handling)
handling
- true if the rule handles the request and nested handlers should not be called.Copyright © 1995-2015 Webtide. All Rights Reserved.