org.apache.cocoon.selection
Class HeaderSelector
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.selection.HeaderSelector
- All Implemented Interfaces:
- Configurable, org.apache.cocoon.selection.Selector, ThreadSafe
- public class HeaderSelector
- extends org.apache.cocoon.util.AbstractLogEnabled
- implements Configurable, ThreadSafe, org.apache.cocoon.selection.Selector
A Selector
that matches a string against a configurable
request header, e.g. "referer".
Global and local configuration
header-name | Name of the request header to
match against |
- Version:
- $Id: HeaderSelector.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Fields inherited from interface org.apache.cocoon.selection.Selector |
ROLE |
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
HeaderSelector
public HeaderSelector()
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.