|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.rewrite.handler.Rule
public abstract class Rule
An abstract rule for creating rewrite rules.
Field Summary | |
---|---|
protected boolean |
_handling
|
protected boolean |
_terminating
|
Constructor Summary | |
---|---|
Rule()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean _terminating
protected boolean _handling
Constructor Detail |
---|
public Rule()
Method Detail |
---|
public abstract String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException
target
- The target of the requestrequest
- response
-
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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |