Hi Victor,
On 16.2.2011 19:02, Grazi, Victor wrote:
> Thanks - That would be the non-Jersey way to do it.
> I was hoping for an annotation, something like
> @Produces("application/xml/compressed")
> Is There anything like that already existing?
> I see there is an api
> http://jersey.java.net/nonav/apidocs/1.5/jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter.html
> Does that need to be a filter or is there a similar algorithm for
> applying an annotation?
Not that I am aware of. You could achieve the behavioryou are
mentioning above by writing your own MessageBodyReader and
MessageBodyWriter for a given media type.
Martin