|
rewrite-impl-servlet 1.0.4.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Method
public class Method
Responsible for asserting on the HttpServletRequest.getMethod() property.
| Method Summary | |
|---|---|
Method |
bindsTo(Binding binding)
|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
List<Binding> |
getBindings()
|
static Method |
isDelete()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of DELETE |
static Method |
isGet()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of GET |
static Method |
isHead()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of HEAD |
static Method |
isOptions()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of OPTIONS |
static Method |
isPost()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of POST |
static Method |
isPut()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of PUT |
static Method |
isTrace()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of TRACE |
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition |
|---|
evaluate |
| Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder |
|---|
and, andNot, create, or, orNot, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Method isGet()
Method condition that ensures the current HttpServletRequest.getMethod() is of GET
public static Method isPost()
Method condition that ensures the current HttpServletRequest.getMethod() is of POST
public static Method isHead()
Method condition that ensures the current HttpServletRequest.getMethod() is of HEAD
public static Method isOptions()
Method condition that ensures the current HttpServletRequest.getMethod() is of OPTIONS
public static Method isPut()
Method condition that ensures the current HttpServletRequest.getMethod() is of PUT
public static Method isDelete()
Method condition that ensures the current HttpServletRequest.getMethod() is of DELETE
public static Method isTrace()
Method condition that ensures the current HttpServletRequest.getMethod() is of TRACE
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic Method bindsTo(Binding binding)
bindsTo in interface Bindable<Method>public List<Binding> getBindings()
getBindings in interface Bindable<Method>
|
rewrite-impl-servlet 1.0.4.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||