org.ocpsoft.rewrite.servlet.config
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, ConfigurationElement, Parameterized
public class ServletMapping
- extends HttpCondition
- implements Parameterized
A Condition responsible for comparing URLs to Servlet Mappings.
- Author:
- Lincoln Baxter, III
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
evaluateHttp
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
- Specified by:
evaluateHttp in class HttpCondition
includes
public static ServletMapping includes(String resource)
- Create a condition which 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 resource.
getResourceExpression
public RegexParameterizedPatternBuilder getResourceExpression()
getRequiredParameterNames
public Set<String> getRequiredParameterNames()
- Specified by:
getRequiredParameterNames in interface Parameterized
setParameterStore
public void setParameterStore(ParameterStore store)
- Specified by:
setParameterStore in interface Parameterized
Copyright © 2013 OCPsoft. All Rights Reserved.