CompactPathRule, HeaderRule, MsieSslRule, PatternRule, RegexRule, RuleContainer, ValidUrlRulepublic abstract class Rule
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
Rule.ApplyURI |
Interface used to apply a changed target if
RuleContainer.setRewriteRequestURI(boolean) is true. |
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
_handling |
|
protected boolean |
_terminating |
| Constructor | Description |
|---|---|
Rule() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isHandling() |
Returns the handling flag value.
|
boolean |
isTerminating() |
Returns the terminating flag value.
|
abstract java.lang.String |
matchAndApply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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.
|
java.lang.String |
toString() |
Returns the handling and terminating flag values.
|
public abstract java.lang.String matchAndApply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
target - The target of the requestrequest - the requestresponse - the responsejava.io.IOException - if unable to match the rulepublic void setTerminating(boolean terminating)
terminating - If true, this rule will terminate the loop if this rule has been applied.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.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2018 Webtide. All rights reserved.