cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <pro...@apache.org>
Subject Re: AcceptSelector
Date Wed, 12 Jun 2002 17:26:54 GMT
On Wednesday 12 June 2002 01:20 pm, Jonas Petersen wrote:
> I am working on a selector that analyses the  Accept header of the
> browser and provides a way to (for example) response with the best
> fitting content(-type). It's comparable with the apache module
> 'mod_negotiation'.

awesome!

> Now a problem that I encountered:
>
> For each <map:when/> the select() function gets called. There I do the
> weight calculations with the current Accept header against the
> configuration. This produces some overhead because this really needs to
> happen only once (in the beginning of the <map:select/>.

Already encountered. Look at the Switch Selector:
http://cvs.apache.org/viewcvs/xml-cocoon2/src/java/org/apache/cocoon/selection/SwitchSelector.java

-pete

-- 
peter royal -> proyal@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message