| java.lang.Object org.apache.cocoon.matching.HeaderMatcher
HeaderMatcher | public class HeaderMatcher implements Matcher,ThreadSafe(Code) | | This class allows for matching based on a request header.
If the specified request header parameter exists, its value is
retrieved for later sitemap substitution.
Example:
<map:match type="header" pattern="referer">
<map:redirect-to uri="{1}"/>
</map:match>
author: Vadim Gritsenko version: CVS $Id: HeaderMatcher.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 header exists. |
match | public Map match(String pattern, Map objectModel, Parameters parameters)(Code) | | Match method to see if the request header exists. If it does
have a value the header added to the array list for later
sitemap substitution.
Parameters: pattern - name of request header to find Parameters: objectModel - environment passed through via cocoon null or map containing value of request header 'pattern' |
|
|