Hi,
Or you can create your own wrapper to do this. This doesn't depend on Jersey.
Petr
2011/2/16 Adam Walczak <me_at_adamwalczak.info>:
>> 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" ?
>
> --
> Adam Walczak
> www.adamwalczak.info
> +48 604 188 992
>