users@jersey.java.net

Re: [Jersey] Compression inn Jersey

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 22 Jul 2008 12:53:10 +0200

Grazi, Victor wrote:
> So filters is the only way to go?
>

Yes, for Content-Encoding or Transfer-Encoding using gzip.

It should be easy to add support for Fast Infoset with JAXB beans. I
just need to find a spare 2 hours to implement/test it. In general
GZIPed XML documents are similar in size to GZIPed Fast Infoset
documents, but XML documents are in general larger than Fast Infoset
documents.

You could add support for other schema-based "compression" schemes like
Protocol buffers or Hessian using MessageBodyReader/Writer for the Java
types associated with those protocols.

Paul.

> -----Original Message-----
> From: Jakub.Podlesak_at_Sun.COM [mailto:Jakub.Podlesak_at_Sun.COM]
> Sent: Thursday, July 17, 2008 10:06 AM
> To: users_at_jersey.dev.java.net
> Subject: Re: [Jersey] Compression inn Jersey
>
>
> Hi Victor,
>
> Please look at Paul's e-mail at [1] for information on using filters in
> Jersey.
>
> ~Jakub
>
> [1]https://jersey.dev.java.net/servlets/ReadMsg?list=users&msgNo=1757
>
> On Wed, Jul 16, 2008 at 03:53:26PM -0400, Grazi, Victor wrote:
>> We would be interested in compressing post and put requests to our
>> Jersey implementation, as well as for all response bodies.
>> Some choices are:
>> Google Protocol buffers
>> (http://google-opensource.blogspot.com/2008/07/protocol-buffers-google
>> s-
>> data.html) (Looks intesting!)
>> Zip or Gzip
>> Other binary encoding - Hessian?
>>
>> Is there any support (currently or planned) for passing compressed
>> formats to and from Jersey?
>>
>> Otherwise we think we would need to hydrate the incoming compressed
>> message bodies in a servlet filter.
>>
>> Are there any best practices?
>>
>> Thanks, Victor
>>
>>
>> ======================================================================
>> ======== Please access the attached hyperlink for an important
>> electronic communications disclaimer:
>>
>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>> ======================================================================
>> ========
>
> --
> http://blogs.sun.com/japod
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
>
> ==============================================================================
> Please access the attached hyperlink for an important electronic communications disclaimer:
>
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ==============================================================================
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109