Introduction
Selectors are executed during pipeline setup. They can be used to
determine which pipeline fragments should be combined. They are best
compared with a switch statement in java. Matchers and actions are
related concepts.
Since this is important, let me repeat it: Selectors are executed
during pipeline setup.
Overview
The following section presents the selectors available in Cocoon.
It was auto-generated from the java source files.
org.apache.cocoon.selection.HostSelector
A Selector that matches a string from within the host parameter
of the HTTP request.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.HostSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.NamedPatternsSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.HostSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.HostSelectorFactory
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.HostSelectorFactory
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.activity.Initializable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.HostSelector
org.apache.cocoon.selection.NamedPatternsSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.HostSelectorFactory"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.RequestParameterSelector
A Selector that matches a string against a configurable request parameter's value.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.RequestParameterSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.RequestParameterSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.RequestSelector
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.RequestSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.activity.Initializable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.RequestParameterSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.RequestSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.RequestSelectorFactory
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.RequestSelectorFactory
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.activity.Initializable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.RequestSelector
org.apache.cocoon.selection.RequestParameterSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.RequestSelectorFactory"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.BrowserSelector
Tests a specific browser pattern against the requesting user-agent.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.BrowserSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.NamedPatternsSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.BrowserSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.SessionAttributeSelector
A Selector that matches a string against a configurable session
attribute's string represenation.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.SessionAttributeSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.SessionAttributeSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.ParameterSelector
A Selector that matches a string in the parameters object passed to it.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.ParameterSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.ParameterSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.BrowserSelectorFactory
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.BrowserSelectorFactory
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.activity.Initializable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.BrowserSelector
org.apache.cocoon.selection.NamedPatternsSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.BrowserSelectorFactory"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.SessionAttributeSelectorFactory
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.SessionAttributeSelectorFactory
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.activity.Initializable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.SessionAttributeSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.SessionAttributeSelectorFactory"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.SessionStateSelector
This class generates source code to implement a selector that
matches a string against an arbitrary session attribute.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.SessionStateSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.SessionAttributeSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.SessionStateSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.HeaderSelector
A Selector that matches a string against a configurable
request header, e.g.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.HeaderSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.HeaderSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.CookieSelector
A Selector that matches a string against a configurable cookie's value.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.CookieSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
|
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.CookieSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.HeaderSelectorFactory
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.HeaderSelectorFactory
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.activity.Initializable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.HeaderSelector
org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.HeaderSelectorFactory"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.ParameterSelectorFactory
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.ParameterSelectorFactory
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.cocoon.selection.ParameterSelector
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.ParameterSelectorFactory"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.selection.RequestAttributeSelector
A Selector that matches a string against a configurable request
attribute's string represenation.
Overview
| Name
|
|
| Class
| org.apache.cocoon.selection.RequestAttributeSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.avalon.framework.logger.Loggable
org.apache.avalon.framework.configuration.Configurable
org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
|
| AllSuperclasses
| org.apache.avalon.framework.logger.AbstractLoggable
java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.selection.RequestAttributeSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|
org.apache.cocoon.sunshine.sunrise.selection.MediaSelector
This selector uses the sunRise media management.
Overview
| Name
|
|
| Class
| org.apache.cocoon.sunshine.sunrise.selection.MediaSelector
|
| Cacheable
| false
|
| AllInterfaces
| org.apache.cocoon.selection.Selector
org.apache.avalon.framework.component.Component
org.apache.avalon.framework.thread.ThreadSafe
org.apache.avalon.framework.component.Composable
|
| AllSuperclasses
| java.lang.Object
|
| Version
| CVS $Id: selectors-ref.xml,v 1.1 2002/05/13 18:33:28 HuberB1 Exp $
|
Sitemap Definition
Serializer sitemap definition:
<map:selectors default="browser">
...
<map:selector name="${coconName}"
src="org.apache.cocoon.sunshine.sunrise.selection.MediaSelector"/>
...
</map:selectors>
|
Sitemap Usage
Serializer usage example:
<map:pipeline>
<map:select type="">
<map:when test="foo">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:selector>
...
</map:pipeline>
|