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<IServletMapping,IServletMapping.ServletMappingParameter,String>, IServletMapping
public class ServletMapping
- extends HttpCondition
- implements IServletMapping
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.
where
public IServletMapping.ServletMappingParameter where(String param)
- Specified by:
where in interface Parameterized<IServletMapping,IServletMapping.ServletMappingParameter,String>
where
public IServletMapping.ServletMappingParameter where(String param,
Binding binding)
- Specified by:
where in interface Parameterized<IServletMapping,IServletMapping.ServletMappingParameter,String>
getResourceExpression
public ParameterizedPattern getResourceExpression()
- Specified by:
getResourceExpression in interface IServletMapping
Copyright © 2012 OCPsoft. All Rights Reserved.