| org.apache.cocoon.selection.NamedPatternsSelector org.apache.cocoon.selection.HostSelector
HostSelector | public class HostSelector extends NamedPatternsSelector (Code) | | A Selector that matches a string from within the host parameter
of the HTTP request.
Configuration:
<map:selector name="host" src="org.apache.cocoon.selection.HostSelector">
<host name="uk-site" value="www.foo.co.uk"/>
</map:selector>
Usage:
<map:select type="host">
<map:when test="uk-site">
<map:transform src="stylesheets/page/uk.xsl"/>
</map:when>
<map:otherwise>
<map:transform src="stylesheets/page/us.xsl"/>
</map:otherwise>
</map:select>
author: Colin Britton author: Sylvain Wallez version: CVS $Id: HostSelector.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | configure(Configuration conf) | public boolean | select(String expression, Map objectModel, Parameters parameters) |
configure | public void configure(Configuration conf) throws ConfigurationException(Code) | | |
select | public boolean select(String expression, Map objectModel, Parameters parameters)(Code) | | |
|
|