org.apache.cocoon.matching
Class RequestParamMatcher
java.lang.Object
|
+--org.apache.cocoon.matching.RequestParamMatcher
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, Matcher, org.apache.avalon.framework.thread.ThreadSafe
- public class RequestParamMatcher
- extends java.lang.Object
- implements Matcher, org.apache.avalon.framework.thread.ThreadSafe
This class allows for matching based on a request parameter.
If the specified request parameter exists, its value is retrieved for later
xpath substitution.
Example:
<map:match type="request" pattern="dest">
<map:redirect-to uri="{1}"/>
</map:match>
- Version:
- CVS $Revision: 1.3.2.5 $
- Author:
- Marcus Crafter
Fields inherited from interface org.apache.cocoon.matching.Matcher |
ROLE |
Method Summary |
java.util.Map |
match(java.lang.String pattern,
java.util.Map objectModel,
org.apache.avalon.framework.parameters.Parameters parameters)
Match method to see if the request parameter exists. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestParamMatcher
public RequestParamMatcher()
match
public java.util.Map match(java.lang.String pattern,
java.util.Map objectModel,
org.apache.avalon.framework.parameters.Parameters parameters)
- Match method to see if the request parameter exists. If it does
have a value the parameter is added to the array list for later
substitution with a xpath attribute.
- Specified by:
match
in interface Matcher
- Parameters:
pattern
- name of request parameter to findobjectModel
- environment passed through via cocoon
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.