rewrite-config-servlet 2.0.0.Alpha6

org.ocpsoft.rewrite.servlet.config
Class Resource

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.Resource
All Implemented Interfaces:
Condition, ConditionBuilder, ConfigurationElement, Parameterized

public class Resource
extends HttpCondition
implements Parameterized

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(String resource)
          Create a new Condition that returns true if the given resource exists relative to the web root of the current application.
 Set<String> getRequiredParameterNames()
           
 ParameterizedPatternParser getResourceExpression()
           
 void setParameterStore(ParameterStore store)
           
 
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, 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(String resource)
Create a new Condition that returns true if the given resource exists relative to the web root of the current application.


getResourceExpression

public ParameterizedPatternParser getResourceExpression()

getRequiredParameterNames

public Set<String> getRequiredParameterNames()
Specified by:
getRequiredParameterNames in interface Parameterized

setParameterStore

public void setParameterStore(ParameterStore store)
Specified by:
setParameterStore in interface Parameterized

rewrite-config-servlet 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.