title: JAX-RS generic response and interface proxy
body: <p>is there any way how to return generic describing entity type with the JAX-RS Response? Something like REST-Easy ClientReponse but JAX-RS standard and not implementation-specific class.</p>
  
  <p>The thing is I want to call my REST service via its shared interface (created by some proxy provider) and returning only object does not allow add information I need. E.g. for creating resource via POST, I would like to return also URL to newly created resource and so on. Returing simple Response does not show what type of entity is stored within such response.</p>
  
  <pre><code>Response&lt;MyObject&gt; getMyObject(@PathParam("id" Integer id)
  </code></pre>
  
  <p>So far it seems that I will have to return simple Response and then create adapter which will simply call Response.getEntity(.class)</p>