dev@jsr311.java.net

Re: JSR311: gzip encoding

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 27 Mar 2009 16:25:06 +0100

On Mar 25, 2009, at 9:58 PM, Bill Burke wrote:

> It seems to me that most JAX-RS implementations support GZIP
> encoding. Any way we could require it within the specification?
> Also maybe define a @GZIP annotation to specify we want to encode
> the response (of course it would be sensitive to the Accept-Encoding
> header).
>
> In Resteasy we encode the response in GZIP if the content-encoding
> response header has been set. Our @GZIP annotation sets the content-
> encoding header.
>
> It just seems weird to me that there is no portable way of doing
> encoding within JAX-RS.
>

I agree. There are probably a bunch of little cases like this.

Could you log an issue so we can track it?

Paul.