org.apache.cocoon.matching
Interface Matcher
- All Known Subinterfaces:
- PreparableMatcher
- All Known Implementing Classes:
- AbstractPreparableMatcher, AjaxRequestMatcher, CookieMatcher, HeaderMatcher, LocaleMatcher, MountTableMatcher, ParameterMatcher, RequestAttributeMatcher, RequestParameterMatcher, SessionAttributeMatcher
- public interface Matcher
- Version:
- CVS $Id: Matcher.java 55389 2004-10-23 15:46:58Z cziegeler $
- Author:
- Giacomo Pati
Method Summary |
Map |
match(String pattern,
Map objectModel,
Parameters parameters)
Matches the pattern against some Request values
and returns a Map object with replacements
for wildcards contained in the pattern. |
ROLE
public static final String ROLE
match
public Map match(String pattern,
Map objectModel,
Parameters parameters)
throws PatternException
- Matches the pattern against some
Request
values
and returns a Map
object with replacements
for wildcards contained in the pattern.
- 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
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.