users@jsr311.java.net

Re: Proposal about contexts

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Wed, 19 Nov 2008 22:04:26 +0100

Hi Sergey,

what kind of use case do you have in mind for the MessageContext
interface? Perhaps you could give a code snippet.

best regards
   Stephan
> 2. Introduce a message context interface MessageContext with a single
> method
>
> Object get(Object key)
>
> for users be able to retrieve properties which might've been set as
> hints either by the underlying JAX-RS implementation or filters. One
> can argue that in this case a user would actually write the unportable
> code but one could also say that products which use multiple JAX-RS
> implementations under the hood will ensure that the same code which
> relies on message properties not otherwise available in other JAX-RS
> contexts will be portable
>
> JAXWS provides similar context implementations.