|
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.ServletMapping
public class ServletMapping
A Condition responsible for comparing the current Address to Servlet Mappings defined in the current
ServletContext.
| Method Summary | |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
Set<String> |
getRequiredParameterNames()
|
ParameterizedPatternBuilder |
getResourceExpression()
Return the underlying ParameterizedPatternBuilder for this ServletMapping. |
static ServletMapping |
includes(String resource)
Create a Condition that returns true if the given resource is mapped by any Servlet
instances registered within the current application, and returns false if no Servlet will
handle the specified resource pattern. |
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 static ServletMapping includes(String resource)
Condition that returns true if the given resource is mapped by any Servlet
instances registered within the current application, and returns false if no Servlet will
handle the specified resource pattern.
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 boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternBuilder getResourceExpression()
ParameterizedPatternBuilder for this ServletMapping.
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 | |||||||||