Class ServletMapping
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.ServletMapping
- All Implemented Interfaces:
Condition,ConditionBuilder,Parameterized
A
Condition responsible for comparing the current Address to Servlet Mappings defined in the current
ServletContext.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateHttp(HttpServletRewrite event, EvaluationContext context) Return the underlyingParameterizedPatternBuilderfor thisServletMapping.static ServletMappingCreate aConditionthat returnstrueif the given resource is mapped by anyServletinstances registered within the current application, and returnsfalseif noServletwill handle the specified resource pattern.voidsetParameterStore(ParameterStore store) Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluateMethods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, or, orNot
-
Method Details
-
includes
Create aConditionthat returnstrueif the given resource is mapped by anyServletinstances registered within the current application, and returnsfalseif noServletwill handle the specified resource pattern.The given resource path may be parameterized:
/example/{param}.html
/css/{value}.css
...- Parameters:
location-ParameterizedPatternspecifying theAddressof the internal resource.
-
evaluateHttp
- Specified by:
evaluateHttpin classHttpCondition
-
getResourceExpression
Return the underlyingParameterizedPatternBuilderfor thisServletMapping. -
getRequiredParameterNames
- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
- Specified by:
setParameterStorein interfaceParameterized
-