users@jersey.java.net

[Jersey] Re: HTTP compression

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Wed, 16 Feb 2011 08:12:57 +0100

Hello,

please see
http://jersey.java.net/nonav/apidocs/1.5/jersey/com/sun/jersey/api/client/filter/GZIPContentEncodingFilter.html

Regards,
Pavel

On 02/16/2011 12:34 AM, Adam Walczak wrote:
>> Hello - how can I specify that a Jersey method mapped to a URL can accept
>> and return its data using HTTP compression?
>>
> Hmmm... I don't thinks this is a Jersey specific topic. My intuition
> tells me that this is should be done in the containers configuration.
>
> In glassfish there is a property that tells should the stream be
> gzip'ed on the http listeners screen in the admin panel.
>
> Maybe there are some options in container specific web.xml's or
> filters that tell "use compression for these url's" ?
>
>