I have recently tried it with the HttpContext which you can get the
HttpRequestContext from it.
You can inject this in your resource/provider.
@Context private HttpContext _context;
/**
* Get the HTTP request information.
* @return the HTTP request information
*/
HttpRequestContext getRequest();
/**
* Get the HTTP response information.
* @return the HTTP response information
*/
HttpResponseContext getResponse();
--
View this message in context: http://jersey.576304.n2.nabble.com/Need-access-to-HttpRequestContext-object-in-Provider-class-tp6609348p6635100.html
Sent from the Jersey mailing list archive at Nabble.com.