org.apache.cocoon.selection
Class BrowserSelector

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.selection.NamedPatternsSelector
          extended byorg.apache.cocoon.selection.BrowserSelector
All Implemented Interfaces:
Configurable, LogEnabled, Selector, ThreadSafe

public class BrowserSelector
extends NamedPatternsSelector

Tests a specific browser pattern against the requesting user-agent.

Version:
CVS $Id: BrowserSelector.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Carsten Ziegeler, Giacomo Pati, Berin Loritsch, Sylvain Wallez

Field Summary
 
Fields inherited from interface org.apache.cocoon.selection.Selector
ROLE
 
Constructor Summary
BrowserSelector()
           
 
Method Summary
 void configure(Configuration conf)
           
 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 org.apache.cocoon.selection.NamedPatternsSelector
checkPatterns, configure
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserSelector

public BrowserSelector()
Method Detail

configure

public void configure(Configuration conf)
               throws ConfigurationException
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

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-2005 The Apache Software Foundation. All Rights Reserved.