...
See this bean for a full example of how jaxrs:client can be used to inject a proxy
Buffering Responses
One way to buffer proxy responses is to have a proxy method return JAX-RS Response, use its bufferEntity() method (available in JAX-RS 2.0) and use Response.readEntity which can return typed responses if preferred.
The other option is to have a "buffer.proxy.response" property enabled on a given proxy instance.
Limitations
Proxy sub-resource methods returning Objects can not be invoked. Prefer to have sub-resource methods returning typed classes: interfaces, abstract classes or concrete implementations.
...