The
RegexpRequestParameterSelector class defines a selector matching
specific request parameters to configured regular-expression patterns.
The configuration of an
RegexpRequestParameterSelector follows exactly
what has been outlined in
AbstractRegexpSelector regarting regular
expression patterns, and additionally it requires an extra configuration element
specifying the request parameter whose value needs to be matched:
<map:components>
...
<map:selectors default="...">
<map:selector name="..." src="org.apache.cocoon.selection....">
<pattern name="empty">^$</pattern>
<pattern name="number">^[0-9]+$</pattern>
<pattern name="string">^.+$</pattern>
<parameter-name>...</parameter-name>
</map:selector>
</map:selectors>
</map:components>
If not configured, or if it needs to be overriddent, the parameter name can
also be specified as a <map:parameter .../> inside the
pipeline itself.
version: CVS $Id: RegexpRequestParameterSelector.java 30941 2004-07-29 19:56:58Z vgritsenko $ author: Pier Fumagalli |