On Mar 26, 2010, at 1:12 PM, KANISHK PANWAR wrote:
> HttpContextRequest does not expose any getAttribute(String) method.
>
I thought you meant HttpServletRequest:
http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getAttribute(java.lang.String)
You can inject the HttpServletRequest using @Context on a field or method parameter.
Marc.
>
> > Date: Fri, 26 Mar 2010 11:29:41 -0400
> > From: Marc.Hadley_at_Sun.COM
> > To: users_at_jersey.dev.java.net
> > Subject: Re: [Jersey] How to get attribues from HttpContextRequest object
> >
> > It should work, what problem are you seeing ?
> >
> > Marc.
> >
> > On Mar 26, 2010, at 10:54 AM, KANISHK PANWAR wrote:
> >
> > > Hello all,
> > >
> > > I am looking for a way to get attributes from a request like one would do with a HttpServletRequest object by calling request.getAttribute(String name). Does Jersey 1.1.4.1 support it?
> > >
> > > Thanks,
> > > Kanishk
> > >
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> > For additional commands, e-mail: users-help_at_jersey.dev.java.net
> >