rewrite-impl-servlet 1.0.2.Final

org.ocpsoft.rewrite.servlet.config
Class Method

java.lang.Object
  extended by org.ocpsoft.rewrite.config.ConditionBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpCondition
          extended by org.ocpsoft.rewrite.servlet.config.Method
All Implemented Interfaces:
Bindable<Method>, Condition

public class Method
extends HttpCondition
implements Bindable<Method>

Responsible for asserting on the HttpServletRequest.getMethod() property.

Author:
Lincoln Baxter, III

Method Summary
 Method bindsTo(Binding binding)
           
 boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           
 java.util.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.ConditionBuilder
and, andNot, or, orNot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isGet

public static Method isGet()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of GET


isPost

public static Method isPost()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of POST


isHead

public static Method isHead()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of HEAD


isOptions

public static Method isOptions()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of OPTIONS


isPut

public static Method isPut()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of PUT


isDelete

public static Method isDelete()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of DELETE


isTrace

public static Method isTrace()
Return a Method condition that ensures the current HttpServletRequest.getMethod() is of TRACE


evaluateHttp

public boolean evaluateHttp(HttpServletRewrite event,
                            EvaluationContext context)
Specified by:
evaluateHttp in class HttpCondition

bindsTo

public Method bindsTo(Binding binding)
Specified by:
bindsTo in interface Bindable<Method>

getBindings

public java.util.List<Binding> getBindings()
Specified by:
getBindings in interface Bindable<Method>

rewrite-impl-servlet 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.