Hi,
I have two proposals for the next version of JAX-RS to address :
1. Introduce a composite context interface WebApplicationContext
@Context WebApplicationContext
for users be able to get HttpHeaders, UriInfo, SecurityContext, etc from WebApplicationContext, thus simplifying their code
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
Thoughts ?
Cheers, Sergey