rewrite-impl-servlet 1.0.3.Final

org.ocpsoft.rewrite.servlet.config
Class DispatchType

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.DispatchType
All Implemented Interfaces:
Bindable<DispatchType>, Condition

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)
           
 java.util.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
 
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

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


bindsTo

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

getBindings

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

rewrite-impl-servlet 1.0.3.Final

Copyright © 2012 OCPsoft. All Rights Reserved.