users@jersey.java.net

Re: locale of the request ?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sat, 19 Sep 2009 09:32:18 +0200

I got it, but I have a second question: should I use the @Context
HttpHeaders as method param or type member ?

        @Context HttpHeaders header;

        @POST
        public Response insert(@QueryParam("login") String login) {
                   ......
        }

---------- OR:

        @POST
        public Response insert(@Context HttpHeaders header,
@QueryParam("login") String login) {
                   ......
        }

??

is it thread safe to use the @Context as type member ?