org.apache.cocoon.matching
Class AbstractWildcardMatcher
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.matching.AbstractWildcardMatcher
- All Implemented Interfaces:
- Component, LogEnabled, Matcher, ThreadSafe
- Direct Known Subclasses:
- CachingWildcardMatcher, WildcardHeaderMatcher, WildcardHostMatcher, WildcardMatcher, WildcardParameterMatcher, WildcardRequestAttributeMatcher, WildcardRequestParameterMatcher, WildcardSessionAttributeMatcher, WildcardURIMatcher
- public abstract class AbstractWildcardMatcher
- extends AbstractLogEnabled
- implements Matcher, ThreadSafe
Base class for wildcard matchers
- Version:
- $Id: AbstractWildcardMatcher.java 433543 2006-08-22 06:22:54Z crossley $
- Author:
- Sylvain Wallez
| Fields inherited from interface org.apache.cocoon.matching.Matcher |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWildcardMatcher
public AbstractWildcardMatcher()
match
public Map match(String pattern,
Map objectModel,
Parameters parameters)
throws PatternException
- Match the prepared pattern against the result of
getMatchString(Map, Parameters).
- Specified by:
match in interface Matcher
- Parameters:
pattern - The pattern to match against. Depending on the
implementation the pattern can contain wildcards
or regular expressions.objectModel - The Map with object of the
calling environment which can be used
to select values this matchers matches against.
- Returns:
- Map The returned
Map object with
replacements for wildcards/regular-expressions
contained in the pattern.
If the return value is null there was no match.
- Throws:
PatternException- See Also:
AbstractPreparableMatcher.match(java.lang.String, java.util.Map, org.apache.avalon.framework.parameters.Parameters)
getMatchString
protected abstract String getMatchString(Map objectModel,
Parameters parameters)
- Get the string to test against the wildcard expression. To be defined
by concrete subclasses.
Copyright © 1999-2006 The Apache Software Foundation. All Rights Reserved.