users@jersey.java.net

[Jersey] Re: HTTP compression

From: Grazi, Victor <victor.grazi_at_credit-suisse.com>
Date: Wed, 16 Feb 2011 13:02:44 -0500

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/clien
t/filter/GZIPContentEncodingFilter.html
<http://jersey.java.net/nonav/apidocs/1.5/jersey/com/sun/jersey/api/clie
nt/filter/GZIPContentEncodingFilter.html>
Does that need to be a filter or is there a similar algorithm for
applying an annotation?
Thanks, Victor
---------- Forwarded message ----------
From: Adam Walczak <me_at_adamwalczak.info>
To: users_at_jersey.java.net
Date: Wed, 16 Feb 2011 00:34:55 +0100
Subject: [Jersey] Re: HTTP compression
> 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 <http://www.adamwalczak.info/> 
+48 604 188 992
---------- Forwarded message ----------
From: Victor Grazi <vgrazi_at_gmail.com>
To: "users_at_jersey.java.net" <users_at_jersey.java.net>
Date: Tue, 15 Feb 2011 15:52:21 -0500
Subject: [Jersey] HTTP compression
Hello - how can I specify that a Jersey method mapped to a URL can
accept and return its data using HTTP compression?
Thanks Victor  
=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
===============================================================================