users@jersey.java.net

Re: [Jersey] Injection question - Guice + HttpServletRequest

From: DirkM <dirk_at_olx.com>
Date: Wed, 7 Oct 2009 11:06:55 -0700 (PDT)

Marc Hadley wrote:
>
> You can still get the HttpHeaders as a field:
> @Context HttpHeaders headers;
>

I tried that but it gave me a NullPointerException when I tried to access
it. I was under the impression you can only use @Context in certain
situations, such as within a Resource class...

-- 
View this message in context: http://n2.nabble.com/Injection-question-Guice-HttpServletRequest-tp3777894p3783528.html
Sent from the Jersey mailing list archive at Nabble.com.