org.apache.cocoon.selection
Class SimpleSelector
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.selection.AbstractSwitchSelector
org.apache.cocoon.selection.SimpleSelector
- All Implemented Interfaces:
- org.apache.cocoon.selection.Selector, org.apache.cocoon.selection.SwitchSelector, ThreadSafe
- public class SimpleSelector
- extends org.apache.cocoon.selection.AbstractSwitchSelector
A very simple selector that operates on string literals, useful especially
in conjunction with input modules.
Usage example:
<map:selector name="simple" src="org.apache.cocoon.selection.SimpleSelector"/>
<map:select type="simple">
<map:parameter name="value" value="{request:method}"/>
<map:when test="GET">
...
</map:when>
<map:when test="POST">
...
</map:when>
<map:when test="PUT">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:select>
- Since:
- 2.1
- Version:
- $Id: SimpleSelector.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 |
SimpleSelector
public SimpleSelector()
getSelectorContext
public Object getSelectorContext(Map objectModel,
Parameters parameters)
select
public boolean select(String expression,
Object selectorContext)
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.