org.apache.cocoon.matching
Class RegexpURIDefaultsMatcher

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.matching.AbstractPreparableMatcher
          extended byorg.apache.cocoon.matching.AbstractRegexpMatcher
              extended byorg.apache.cocoon.matching.RegexpURIDefaultsMatcher
All Implemented Interfaces:
LogEnabled, Matcher, PreparableMatcher, ThreadSafe

public class RegexpURIDefaultsMatcher
extends AbstractRegexpMatcher

Matches the request URIs against a regular expression pattern.

Since:
03 January 2003
Version:
CVS $Id: RegexpURIDefaultsMatcher.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Bernhard Huber

Field Summary
 
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
RegexpURIDefaultsMatcher()
           
 
Method Summary
protected  String getMatchString(Map objectModel, Parameters parameters)
          Return the request URI.
protected  void mapDefaults(Parameters parameters, Map map)
          Description of the Method
 Map preparedMatch(Object preparedPattern, Map objectModel, Parameters parameters)
          Match the prepared pattern against the value returned by getMatchString(Map, Parameters).
 
Methods inherited from class org.apache.cocoon.matching.AbstractRegexpMatcher
preparePattern
 
Methods inherited from class org.apache.cocoon.matching.AbstractPreparableMatcher
match
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexpURIDefaultsMatcher

public RegexpURIDefaultsMatcher()
Method Detail

preparedMatch

public Map preparedMatch(Object preparedPattern,
                         Map objectModel,
                         Parameters parameters)
Match the prepared pattern against the value returned by getMatchString(Map, Parameters).

Specified by:
preparedMatch in interface PreparableMatcher
Overrides:
preparedMatch in class AbstractRegexpMatcher
Parameters:
preparedPattern - Description of the Parameter
objectModel - Description of the Parameter
parameters - Description of the Parameter
Returns:
Description of the Return Value

getMatchString

protected String getMatchString(Map objectModel,
                                Parameters parameters)
Return the request URI.

Specified by:
getMatchString in class AbstractRegexpMatcher
Parameters:
objectModel - Description of the Parameter
parameters - Description of the Parameter
Returns:
The matchString value

mapDefaults

protected void mapDefaults(Parameters parameters,
                           Map map)
Description of the Method

Parameters:
parameters - Description of the Parameter
map - Description of the Parameter


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.