org.apache.cocoon.selection
Class RequestAttributeSelector

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.selection.RequestAttributeSelector
All Implemented Interfaces:
Configurable, org.apache.cocoon.selection.Selector, ThreadSafe

public class RequestAttributeSelector
extends org.apache.cocoon.util.AbstractLogEnabled
implements Configurable, ThreadSafe, org.apache.cocoon.selection.Selector

A Selector that matches a string against a configurable request attribute's string represenation.

Global and local configuration

attribute-nameString identifying the request attribute.

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

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

RequestAttributeSelector

public RequestAttributeSelector()
Method Detail

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)
Specified by:
select in interface org.apache.cocoon.selection.Selector


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.