public abstract class Method extends HttpCondition
Condition responsible for asserting on the HttpServletRequest.getMethod() property.| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
static Method |
isDelete()
Create a
Method condition that ensures the current HttpServletRequest.getMethod() is DELETE |
static Method |
isGet()
Create a
Method condition that ensures the current HttpServletRequest.getMethod() is GET |
static Method |
isHead()
Create a
Method condition that ensures the current HttpServletRequest.getMethod() is HEAD |
static Method |
isOptions()
Create a
Method condition that ensures the current HttpServletRequest.getMethod() is OPTIONS |
static Method |
isPost()
Create a
Method condition that ensures the current HttpServletRequest.getMethod() is POST |
static Method |
isPut()
Create a
Method condition that ensures the current HttpServletRequest.getMethod() is PUT |
static Method |
isTrace()
Create a
Method condition that ensures the current HttpServletRequest.getMethod() is TRACE |
String |
toString() |
evaluateand, andNot, or, orNotpublic static Method isGet()
Method condition that ensures the current HttpServletRequest.getMethod() is GETpublic static Method isPost()
Method condition that ensures the current HttpServletRequest.getMethod() is POSTpublic static Method isHead()
Method condition that ensures the current HttpServletRequest.getMethod() is HEADpublic static Method isOptions()
Method condition that ensures the current HttpServletRequest.getMethod() is OPTIONSpublic static Method isPut()
Method condition that ensures the current HttpServletRequest.getMethod() is PUTpublic static Method isDelete()
Method condition that ensures the current HttpServletRequest.getMethod() is DELETEpublic static Method isTrace()
Method condition that ensures the current HttpServletRequest.getMethod() is TRACEpublic boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionCopyright © 2021 OCPsoft. All rights reserved.