org.apache.shale.application
Class ContextRelativePathFilter

java.lang.Object
  extended by org.apache.shale.application.AbstractRegExpFilter
      extended by org.apache.shale.application.ContextRelativePathFilter
All Implemented Interfaces:
Command

public class ContextRelativePathFilter
extends AbstractRegExpFilter

Command that filters incoming requests based on matching the context-relative portion of the request URI (in other words, servlet path plus path info) against regular expression patterns that are configured on this instance. See AbstractRegExpFilter for details of the matching algorithm.

USAGE NOTE: - This command will only be effective if used before the regular filter chain is processed. In other words, you should invoke it as part of a preprocess chain in the shale catalog.

$Id: ContextRelativePathFilter.java 464373 2006-10-16 04:21:54Z rahul $

See Also:
AbstractRegExpFilter

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
ContextRelativePathFilter()
           
 
Method Summary
protected  String value(ShaleWebContext context)
          Return the servlet path (if any) concatenated with the path info (if any) for this request.
 
Methods inherited from class org.apache.shale.application.AbstractRegExpFilter
accept, execute, getExcludes, getIncludes, getIncludesPatterns, matches, reject, setExcludes, setIncludes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextRelativePathFilter

public ContextRelativePathFilter()
Method Detail

value

protected String value(ShaleWebContext context)

Return the servlet path (if any) concatenated with the path info (if any) for this request.

Specified by:
value in class AbstractRegExpFilter
Parameters:
context - Context for the current request


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.