|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Resource
public class Resource
A Condition responsible for determining existence of resources within the
ServletContext.getResourcePaths(String) of the servlet container.
| Method Summary | |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
static Resource |
exists(String resource)
Create a Condition that returns true if the given resource exists in the
ServletContext.getResourcePaths(String) of the current application. |
ParameterizedPatternParser |
getExpression()
Get the ParameterizedPattern of this Resource. |
Set<String> |
getRequiredParameterNames()
|
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, or, orNot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic static Resource exists(String resource)
Condition that returns true if the given resource exists in the
ServletContext.getResourcePaths(String) of the current application.
The given resource path may be parameterized:
/example/{param}.html
/css/{value}.css
...
location - ParameterizedPattern specifying the Address of the internal resource.ConfigurationRuleParameterBuilder#where(String)}public ParameterizedPatternParser getExpression()
ParameterizedPattern of this Resource.
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface Parameterized
|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||