org.apache.cocoon.matching
Class CookieMatcher

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.matching.CookieMatcher
All Implemented Interfaces:
Component, LogEnabled, ThreadSafe, Matcher

public class CookieMatcher
extends AbstractLogEnabled
implements Matcher, ThreadSafe

Matches cookies agains given name. Returns value of the matched cookie.

Version:
CVS $Id: CookieMatcher.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Maciek Kaminski

Field Summary
 
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
CookieMatcher()
           
 
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.
 
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

CookieMatcher

public CookieMatcher()
Method Detail

match

public Map match(String pattern,
                 Map objectModel,
                 Parameters parameters)
          throws PatternException
Description copied from interface: Matcher
Matches the pattern against some Request values and returns a Map object with replacements for wildcards contained in the pattern.

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


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.