org.apache.cocoon.selection
Class SessionAttributeSelector
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.selection.SessionAttributeSelector
- All Implemented Interfaces:
- Component, Configurable, LogEnabled, ThreadSafe, Selector
- Direct Known Subclasses:
- SessionStateSelector
public class SessionAttributeSelector
- extends AbstractLogEnabled
- implements Configurable, ThreadSafe, Selector
A Selector
that matches a string against a configurable session
attribute's string represenation.
Global and local configuration
attribute-name | String identifying the session attribute. |
- Version:
- CVS $Id: SessionAttributeSelector.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Christian Haul, Sylvain Wallez
Fields inherited from interface org.apache.cocoon.selection.Selector |
ROLE |
Method Summary |
void |
configure(Configuration config)
|
boolean |
select(String expression,
Map objectModel,
Parameters parameters)
Selectors test pattern against some objects in a Map
model and signals success with the returned boolean value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultName
protected String defaultName
SessionAttributeSelector
public SessionAttributeSelector()
configure
public void configure(Configuration config)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
select
public boolean select(String expression,
Map objectModel,
Parameters parameters)
- Description copied from interface:
Selector
- Selectors test pattern against some objects in a
Map
model and signals success with the returned boolean value
- Specified by:
select
in interface Selector
- Parameters:
expression
- The expression to test.objectModel
- The Map
containing object of the
calling environment which may be used
to select values to test the expression.parameters
- The sitemap parameters, as specified by <parameter/> tags.
- Returns:
- boolean Signals successfull test.
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.