org.apache.cocoon.selection
Class HeaderSelector

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

Version:
$Id: HeaderSelector.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
HeaderSelector()
           
 
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

HeaderSelector

public HeaderSelector()
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.