rewrite-config-servlet 2.0.0.Alpha2

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:
Bindable<DispatchType>, Condition, ConditionBuilder, ConfigurationElement

public class DispatchType
extends HttpCondition
implements Bindable<DispatchType>

Responsible for asserting on the ServletRequest.getDispatcherType() property.

Author:
Lincoln Baxter, III

Method Summary
 DispatchType bindsTo(Binding binding)
           
 boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           
 List<Binding> getBindings()
           
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

bindsTo

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

getBindings

public List<Binding> getBindings()
Specified by:
getBindings in interface Bindable<DispatchType>

rewrite-config-servlet 2.0.0.Alpha2

Copyright © 2012 OCPsoft. All Rights Reserved.