title: Jersey, content gzip/deflate
body: <p>I'm trying to understand how I can apply different interceptor based on Content-Encoding gzip|deflate and supply data according to Accept-Encoding. I was reading about gzip/deflate interceptors, but don't quite understand how that works.</p>
  
  <pre><code>public Response bigPayload( PayloadDto data ) {
     ...
     return Response.ok( BigDataDto ).build(); 
  }
  </code></pre>
  
  <p>basically I would like to be able to accept gzip/deflate for the payload json and return gzip/deflate data if supported.</p>
  
  <p>Thank you.</p>