rewrite-config-servlet 2.0.0.Beta3

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

public class DispatchType
extends HttpCondition

A Condition that inspects the value of HttpServletRequest#getDispatcherType().

Author:
Lincoln Baxter, III

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


isRequest

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


isError

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


isAsync

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


isInclude

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


toString

public String toString()
Overrides:
toString in class Object

rewrite-config-servlet 2.0.0.Beta3

Copyright © 2013 OCPsoft. All Rights Reserved.