Class DispatchType
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.DispatchType
- All Implemented Interfaces:
Condition,ConditionBuilder
A
Condition that inspects the value of ServletRequest.getDispatcherType().- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateHttp(HttpServletRewrite event, EvaluationContext context) static DispatchTypeisAsync()Create aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.ASYNCstatic DispatchTypeisError()Create aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.ERRORstatic DispatchTypeCreate aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.FORWARDstatic DispatchTypeCreate aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.INCLUDEstatic DispatchTypeCreate aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.REQUESTtoString()Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluateMethods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, or, orNot
-
Method Details
-
evaluateHttp
- Specified by:
evaluateHttpin classHttpCondition
-
isForward
Create aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.FORWARD -
isRequest
Create aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.REQUEST -
isError
Create aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.ERROR -
isAsync
Create aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.ASYNC -
isInclude
Create aDispatchTypecondition that ensures the currentHttpServletRewriteis aDispatcherType.INCLUDE -
toString
-