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.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com