| java.lang.Object org.apache.cocoon.matching.SessionAttributeMatcher
SessionAttributeMatcher | public class SessionAttributeMatcher implements Matcher,ThreadSafe(Code) | | This class allows for matching based on a session attribute.
If the specified session attribute exists, its string representation
is retrieved for later sitemap substitution.
Example:
<map:match type="session-attribute" pattern="style">
<map:read src="{1}"/>
</map:match>
author: Vadim Gritsenko version: CVS $Id: SessionAttributeMatcher.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public Map | match(String pattern, Map objectModel, Parameters parameters) Match method to see if the request attribute exists. |
match | public Map match(String pattern, Map objectModel, Parameters parameters)(Code) | | Match method to see if the request attribute exists. If it does
have a value the string represenation of attribute is added to
the array list for later sitemap substitution.
Parameters: pattern - name of session attribute to find Parameters: objectModel - environment passed through via cocoon null or map containing value of session attribute 'pattern' |
|
|