rewrite-config-servlet 2.0.0.Alpha6

org.ocpsoft.rewrite.servlet.config
Class DispatchType

java.lang.Object
  extended by org.ocpsoft.rewrite.config.DefaultConditionBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpCondition
          extended by org.ocpsoft.rewrite.servlet.config.DispatchType
All Implemented Interfaces:
Condition, ConditionBuilder, ConfigurationElement

public class DispatchType
extends HttpCondition

Responsible for asserting on the HttpServletRequest#getDispatcherType() property.

Author:
Lincoln Baxter, III

Method Summary
 boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           
static DispatchType isAsync()
          Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.ASYNC
static DispatchType isError()
          Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.ERROR
static DispatchType isForward()
          Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.FORWARD
static DispatchType isInclude()
          Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.INCLUDE
static DispatchType isRequest()
          Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.REQUEST
 String toString()
           
 
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, wait, wait, wait
 

Method Detail

evaluateHttp

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

isForward

public static DispatchType isForward()
Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.FORWARD


isRequest

public static DispatchType isRequest()
Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.REQUEST


isError

public static DispatchType isError()
Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.ERROR


isAsync

public static DispatchType isAsync()
Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.ASYNC


isInclude

public static DispatchType isInclude()
Return a DispatchType condition that ensures the current HttpServletRewrite is of DispatcherType.INCLUDE


toString

public String toString()
Overrides:
toString in class Object

rewrite-config-servlet 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.