rewrite-impl-servlet 1.0.4.Final

org.ocpsoft.rewrite.servlet.config
Class ServletMapping

java.lang.Object
  extended by org.ocpsoft.rewrite.config.DefaultConditionBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpCondition
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.IServletMapping
IServletMapping.IServletMappingParameter, IServletMapping.ServletMappingParameter
 
Method Summary
 boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           
 ParameterizedPattern getResourceExpression()
           
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.
 IServletMapping.ServletMappingParameter where(String param)
           
 IServletMapping.ServletMappingParameter where(String param, Binding binding)
           
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluate
 
Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, create, or, orNot, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ocpsoft.rewrite.config.ConditionBuilder
and, andNot, or, orNot
 
Methods inherited from interface org.ocpsoft.rewrite.config.Condition
evaluate
 

Method Detail

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

rewrite-impl-servlet 1.0.4.Final

Copyright © 2012 OCPsoft. All Rights Reserved.