Class Method

All Implemented Interfaces:
Condition, ConditionBuilder

public abstract class Method extends HttpCondition
A Condition responsible for asserting on the HttpServletRequest.getMethod() property.
Author:
Lincoln Baxter, III
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isGet

      public static Method isGet()
      Create a Method condition that ensures the current HttpServletRequest.getMethod() is GET
    • isPost

      public static Method isPost()
      Create a Method condition that ensures the current HttpServletRequest.getMethod() is POST
    • isHead

      public static Method isHead()
      Create a Method condition that ensures the current HttpServletRequest.getMethod() is HEAD
    • isOptions

      public static Method isOptions()
      Create a Method condition that ensures the current HttpServletRequest.getMethod() is OPTIONS
    • isPut

      public static Method isPut()
      Create a Method condition that ensures the current HttpServletRequest.getMethod() is PUT
    • isDelete

      public static Method isDelete()
      Create a Method condition that ensures the current HttpServletRequest.getMethod() is DELETE
    • isTrace

      public static Method isTrace()
      Create a Method condition that ensures the current HttpServletRequest.getMethod() is TRACE
    • evaluateHttp

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