org.apache.cocoon.selection
Class RequestParameterSelector

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.selection.AbstractSwitchSelector
          extended byorg.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-nameName of the request parameter whose value to match against

Version:
$Id: RequestParameterSelector.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  String defaultName
           
 
Fields inherited from interface org.apache.cocoon.selection.SwitchSelector
ROLE
 
Constructor Summary
RequestParameterSelector()
           
 
Method Summary
 void configure(Configuration config)
           
 Object getSelectorContext(Map objectModel, Parameters parameters)
           
 boolean select(String expression, Object selectorContext)
           
 
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
 

Field Detail

defaultName

protected String defaultName
Constructor Detail

RequestParameterSelector

public RequestParameterSelector()
Method Detail

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.