cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: sitemap and request headers
Date Sun, 02 Jan 2000 21:44:26 GMT
Jerm wrote:
> 
> Hi,
> 
> Does the sitemap proposal deal with any interaction with between the contents of
> request headers and sessions and the actions performed by Cocoon?
> 
>     cookie:
>     authentication:
>     user-agent:
>     accept:
>     accept-language:
>     accept-charset:
> 
>     etc.

Yes, we created hooks for you to react on those...

  <process uri="..." translate="..." errorhandler="...">
      <matcher class="...">
        <param name="..." value="..."/>
      </matcher>
      ...
  <process>

where matcher implements the interface

 public interface Matcher {
    boolean matches(HttpServletRequest request);
 }

and you can use some widely used ones that will be shipped with cocoon
(like the user-agent-matcher, for example), but you can always write you
own if you wish to have some strange matching logic.

Does is fit your needs?

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message