rewrite-config-servlet 2.0.0.Alpha6

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

public class ServletMapping
extends HttpCondition
implements Parameterized

A Condition responsible for comparing URLs to Servlet Mappings.

Author:
Lincoln Baxter, III

Method Summary
 boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           
 Set<String> getRequiredParameterNames()
           
 RegexParameterizedPatternBuilder 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.
 void setParameterStore(ParameterStore store)
           
 
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
 

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.


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

rewrite-config-servlet 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.