title: Is it possible in Jersey to have access to an injected HttpServletRequest, instead of to a proxy
body: <p>When injecting <code>HttpServletRequest</code> in Jersey/JAX-RS resources, the injected value is a proxy. E.g.:</p>
  
  <pre><code>@Path("/myResource") 
  class MyResource {
      @Inject 
      HttpServletRequest request;
      ...
  }
  </code></pre>
  
  <p>Will inject a <code>Proxy</code> object for the requested <code>HttpServletRequest</code>. I need access to the actual <code>HttpServletRequest</code> instance object, because I want to use some container specific features that are not in the proxied <code>HttpServletRequest</code>  interface.</p>
  
  <p>Is there a way in jersey to have access to the actual object via injection? I know that in older versions of Jersey you could inject a <code>ThreadLocal&lt;HttpServletRequest&gt;</code> to achieve this. But that doesn't seem to be supported in jersey 2.15 anymore.</p>
  
  <p>Rationale: My code depends on functionality in <code>org.eclipse.jetty.server.Request</code> which implements <code>HttpRequest</code>, and adds functionality for HTTP/2 push. I would like to use that with Jersey/JAX-RS.</p>