| java.lang.Object org.apache.cocoon.matching.RequestAttributeMatcher
RequestAttributeMatcher | public class RequestAttributeMatcher implements Matcher,ThreadSafe(Code) | | This class allows for matching based on a request attribute.
If the specified request attribute exists, its string representation
is retrieved for later sitemap substitution.
Example:
<map:match type="request-attribute" pattern="next">
<map:redirect-to src="{1}"/>
</map:match>
author: Vadim Gritsenko version: CVS $Id: RequestAttributeMatcher.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 request attribute to find Parameters: objectModel - environment passed through via cocoon null or map containing value of request attribute 'pattern' |
|
|