rewrite-api-servlet 1.0.0.Final

org.ocpsoft.rewrite.servlet.config
Class HttpCondition

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

public abstract class HttpCondition
extends ConditionBuilder

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.ConditionBuilder
and, andNot, or, orNot
 
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 1.0.0.Final

Copyright © 2012 OCPsoft. All Rights Reserved.