dev@jsr311.java.net

Re: JSR311: gzip encoding

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 01 Apr 2009 10:29:24 -0400

On Mar 31, 2009, at 8:16 PM, Bill Burke wrote:
>
> * To Marc's point: I never understood why encoding was a part of the
> content negotiation apis of JAX-RS. If there is a special encoding,
> JAX-RS has no way of using MessageBodyReaders and the app-developer
> will have to do their own stream processing. IMO, there should have
> been a ProducesLanguage ConsumesLanguage annotations too.
>
We did discuss doing that early on but, IIRC, the resulting
combinatorial explosion of resource methods was felt to be a big
downside to that approach so we adopted the conneg approach instead.

Marc.