rewrite-impl-servlet 1.0.2.Final

org.ocpsoft.rewrite.servlet.config
Class ServletMapping

java.lang.Object
  extended by org.ocpsoft.rewrite.config.ConditionBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpCondition
          extended by org.ocpsoft.rewrite.servlet.config.ServletMapping
All Implemented Interfaces:
Condition

public class ServletMapping
extends HttpCondition

A Condition responsible for comparing URLs to Servlet Mappings.

Author:
Lincoln Baxter, III

Method Summary
 boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
           
static ServletMapping includes(java.lang.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.
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluate
 
Methods inherited from class org.ocpsoft.rewrite.config.ConditionBuilder
and, andNot, or, orNot
 
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(java.lang.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.


rewrite-impl-servlet 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.