rewrite-api-servlet 2.0.0.Alpha6

org.ocpsoft.rewrite.servlet.config
Class HttpCondition

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

public abstract class HttpCondition
extends DefaultConditionBuilder

A condition that only applies to HttpServletRewrite events.

Author:
Lincoln Baxter, III

Constructor Summary
HttpCondition()
           
 
Method Summary
 boolean evaluate(Rewrite event, EvaluationContext context)
           
abstract  boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
          Evaluate this condition against the given HttpServletRewrite event.
 
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, toString, wait, wait, wait
 

Constructor Detail

HttpCondition

public HttpCondition()
Method Detail

evaluateHttp

public abstract boolean evaluateHttp(HttpServletRewrite event,
                                     EvaluationContext context)
Evaluate this condition against the given HttpServletRewrite event. If this condition does not apply to the given event, it must return false. If the condition applies and is satisfied, return true.


evaluate

public final boolean evaluate(Rewrite event,
                              EvaluationContext context)

rewrite-api-servlet 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.