org.apache.cocoon.selection
Class RequestParameterSelector
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.selection.AbstractSwitchSelector
org.apache.cocoon.selection.RequestParameterSelector
- All Implemented Interfaces:
- Configurable, org.apache.cocoon.selection.Selector, org.apache.cocoon.selection.SwitchSelector, ThreadSafe
- public class RequestParameterSelector
- extends org.apache.cocoon.selection.AbstractSwitchSelector
- implements Configurable
A Selector
that matches a string against a configurable request parameter's value.
Global and local configuration
parameter-name | Name of the request
parameter whose value to match against |
- Version:
- $Id: RequestParameterSelector.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Fields inherited from interface org.apache.cocoon.selection.SwitchSelector |
ROLE |
Methods inherited from class org.apache.cocoon.selection.AbstractSwitchSelector |
select |
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultName
protected String defaultName
RequestParameterSelector
public RequestParameterSelector()
configure
public void configure(Configuration config)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
getSelectorContext
public Object getSelectorContext(Map objectModel,
Parameters parameters)
- Specified by:
getSelectorContext
in interface org.apache.cocoon.selection.SwitchSelector
select
public boolean select(String expression,
Object selectorContext)
- Specified by:
select
in interface org.apache.cocoon.selection.SwitchSelector
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.