public abstract class ServletMapping extends HttpCondition implements Parameterized
Condition responsible for comparing the current Address to Servlet Mappings defined in the current
ServletContext.| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
Set<String> |
getRequiredParameterNames() |
ParameterizedPatternBuilder |
getResourceExpression()
Return the underlying
ParameterizedPatternBuilder for this ServletMapping. |
static ServletMapping |
includes(String resource)
|
void |
setParameterStore(ParameterStore store) |
evaluateand, andNot, or, orNotpublic 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 ParameterizedCopyright © 2015 OCPsoft. All Rights Reserved.