public class DispatchType extends HttpCondition
Condition that inspects the value of HttpServletRequest#getDispatcherType().DefaultConditionBuilder.DefaultConditionBuilderInternal| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
static DispatchType |
isAsync()
Create a
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.ASYNC |
static DispatchType |
isError()
Create a
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.ERROR |
static DispatchType |
isForward()
Create a
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.FORWARD |
static DispatchType |
isInclude()
Create a
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.INCLUDE |
static DispatchType |
isRequest()
Create a
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.REQUEST |
String |
toString() |
evaluateand, andNot, or, orNotpublic boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic static DispatchType isForward()
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.FORWARDpublic static DispatchType isRequest()
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.REQUESTpublic static DispatchType isError()
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.ERRORpublic static DispatchType isAsync()
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.ASYNCpublic static DispatchType isInclude()
DispatchType condition that ensures the current HttpServletRewrite is a
DispatcherType.INCLUDECopyright © 2014 OCPsoft. All Rights Reserved.