cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <tobia.confo...@linux.it>
Subject Re: Cocoon and content-negotiation
Date Thu, 29 Nov 2007 15:35:51 GMT
Severin Gehwolf wrote:
> select a particular XML file with the best-matching language extension
> according to users Accept-Language HTTP headers.

This is usually achieved in Cocoon using the LocaleAction:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/LocaleAction.html

Other kinds of content negotiation, such as detecting patterns in the
HTTP Accept header, can be performed with the RegexpHeaderSelector:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/RegexpHeaderSelector.html
or similar selectors and matchers that access the HTTP headers.


Tobia

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


Mime
View raw message