org.apache.cocoon.matching
Class CookieMatcher

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.matching.CookieMatcher
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.Loggable, Matcher

public class CookieMatcher
extends org.apache.avalon.framework.logger.AbstractLoggable
implements Matcher

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

Author:
Maciek Kaminski

Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
CookieMatcher()
           
 
Method Summary
 java.util.Map match(java.lang.String pattern, java.util.Map objectModel, org.apache.avalon.framework.parameters.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.AbstractLoggable
getLogger, setLogger, 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 java.util.Map match(java.lang.String pattern,
                           java.util.Map objectModel,
                           org.apache.avalon.framework.parameters.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
Following copied from interface: org.apache.cocoon.matching.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.


Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.