public abstract class Rule
extends java.lang.Object
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 java.lang.String |
matchAndApply(java.lang.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.
|
java.lang.String |
toString()
Returns the handling and terminating flag values.
|
public abstract java.lang.String matchAndApply(java.lang.String target, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
target
- The target of the requestrequest
- response
- java.io.IOException
- TODOpublic 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.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.