|
||||||||||
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 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. |
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 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
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |