rewrite-impl-servlet 1.0.2.Final

org.ocpsoft.rewrite.servlet.config
Class Resource

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.Resource
All Implemented Interfaces:
Condition

public class Resource
extends HttpCondition

A Condition responsible for determining existence of resources within the web root of the servlet container.

Author:
Lincoln Baxter, III

Method Summary
 boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           
static Resource exists(java.lang.String resource)
          Create a new Condition that returns true if the given resource exists relative to the web root of the current application.
 
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

exists

public static Resource exists(java.lang.String resource)
Create a new Condition that returns true if the given resource exists relative to the web root of the current application.


rewrite-impl-servlet 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.