org.apache.cocoon.matching
Interface Matcher

All Superinterfaces:
Component
All Known Subinterfaces:
PreparableMatcher
All Known Implementing Classes:
AbstractPreparableMatcher, AbstractRegexpMatcher, AbstractWildcardMatcher, AjaxRequestMatcher, CachingRegexpMatcher, CachingWildcardMatcher, CookieMatcher, HeaderMatcher, LocaleMatcher, MountTableMatcher, ParameterMatcher, RegexpHeaderMatcher, RegexpHostMatcher, RegexpParameterMatcher, RegexpRequestAttributeMatcher, RegexpRequestParameterMatcher, RegexpSessionAttributeMatcher, RegexpTargetHostMatcher, RegexpURIMatcher, RequestAttributeMatcher, RequestParameterMatcher, RequestParamMatcher, SessionAttributeMatcher, WildcardHeaderMatcher, WildcardHostMatcher, WildcardMatcher, WildcardParameterMatcher, WildcardParameterValueMatcher, WildcardRequestAttributeMatcher, WildcardRequestParameterMatcher, WildcardSessionAttributeMatcher, WildcardURIMatcher

public interface Matcher
extends Component

Version:
CVS $Id: Matcher.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Giacomo Pati

Field Summary
static String ROLE
           
 
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.
 

Field Detail

ROLE

static final String ROLE
Method Detail

match

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-2010 The Apache Software Foundation. All Rights Reserved.