users@jersey.java.net

[Jersey] Re: access to simpleframework HTTP request

From: Arul Dhesiaseelan <aruld_at_acm.org>
Date: Sun, 14 Aug 2011 09:47:44 -0600

I believe simpleframework Request is adapted to Jersey ContainerRequest and
looks like it is not made available in the injected JAX-RS context. Btw, I
found another way to get access session APIs, which is directly dealing with
simple SessionProvider in the resource.

Thanks for the response.

-Arul

On Fri, Aug 12, 2011 at 1:24 AM, Robertnac <robertnac_at_googlemail.com> wrote:

> Hi,
>
> you can use the annotation Context
>
> http://jersey.java.net/nonav/apidocs/latest/jersey/javax/ws/rs/core/Context.html
>
> In your Resouce-Class you write:
> @Context
> private javax.ws.rs.core.Request servletRequest;
> as class variable and you get the Request.
>
> Regards,
>
> Robert
>
> 2011/8/11 Arul Dhesiaseelan <aruld_at_acm.org>:
> > Hi,
> > I am using Jersey-simple-server module in my application.
> > Is there a way to get access to the Request object from the resource? I
> need
> > this to work with the session APIs provided by simpleframework.
> > Appreciate any suggestions.
> > Thanks,
> > Arul
>



-- 
http://aruld.info
http://twitter.com/aruld