org.ocpsoft.rewrite.servlet.config
Class Resource
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Resource
- All Implemented Interfaces:
- Condition, ConditionBuilder, ConfigurationElement, Parameterized<IResource,IResource.ResourceParameter,String>, IResource
public class Resource
- extends HttpCondition
- implements IResource
A Condition responsible for determining existence of resources within the web root
of the servlet container.
- Author:
- Lincoln Baxter, III
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
where
public IResource.ResourceParameter where(String param)
- Specified by:
where in interface Parameterized<IResource,IResource.ResourceParameter,String>
where
public IResource.ResourceParameter where(String param,
Binding binding)
- Specified by:
where in interface Parameterized<IResource,IResource.ResourceParameter,String>
getResourceExpression
public ParameterizedPatternParser getResourceExpression()
- Specified by:
getResourceExpression in interface IResource
Copyright © 2012 OCPsoft. All Rights Reserved.