Class Method
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Method
- All Implemented Interfaces:
Condition,ConditionBuilder
A
Condition responsible for asserting on the HttpServletRequest.getMethod() property.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateHttp(HttpServletRewrite event, EvaluationContext context) static MethodisDelete()Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is DELETEstatic MethodisGet()Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is GETstatic MethodisHead()Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is HEADstatic MethodCreate aMethodcondition that ensures the currentHttpServletRequest.getMethod()is OPTIONSstatic MethodisPost()Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is POSTstatic MethodisPut()Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is PUTstatic MethodisTrace()Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is TRACEtoString()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
-
toString
-
isGet
Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is GET -
isPost
Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is POST -
isHead
Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is HEAD -
isOptions
Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is OPTIONS -
isPut
Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is PUT -
isDelete
Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is DELETE -
isTrace
Create aMethodcondition that ensures the currentHttpServletRequest.getMethod()is TRACE -
evaluateHttp
- Specified by:
evaluateHttpin classHttpCondition
-