This project has retired. For details please refer to its
Attic page .
ParameterMatcher (Cocoon Sitemap Components 1.0.0 API)
org.apache.cocoon.matching
Class ParameterMatcher
java.lang.Object
org.apache.cocoon.matching.ParameterMatcher
All Implemented Interfaces: org.apache.cocoon.matching.Matcher, ThreadSafe
public class ParameterMatcher extends Object implements org.apache.cocoon.matching.Matcher, ThreadSafe
This class allows for matching based on a parameter provided from the sitemap.
If the specified sitemap parameter exists, its value is retrieved for later
sitemap substitution.
Example:
<map:match type="parameter" pattern="dest">
<map:redirect-to uri="{1}"/>
</map:match>
Version:
$Id: ParameterMatcher.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
ParameterMatcher
public ParameterMatcher ()
match
public Map match (String pattern,
Map objectModel,
Parameters parameters)
Match method to see if the sitemap parameter exists. If it does
have a value the parameter added to the array list for later
sitemap substitution.
Specified by: match
in interface org.apache.cocoon.matching.Matcher
Parameters: pattern
- name of sitemap parameter to findobjectModel
- environment passed through via cocoon
Returns: null or map containing value of sitemap parameter 'pattern'
Copyright © 1999-2008 The Apache Software Foundation . All Rights Reserved.