public class Resource extends HttpCondition implements Parameterized
Condition responsible for determining existence of resources within the web root
of the servlet container.| Modifier and Type | Method and Description |
|---|---|
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) |
evaluatepublic boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic static Resource exists(String resource)
Condition that returns true if the given resource exists relative
to the web root of the current application.public ParameterizedPatternParser getResourceExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2013 OCPsoft. All Rights Reserved.