a gzip representation

2007-04-12 Thread Jim Alateras
I was looking for some guidance on how i would package a gzipped java serialized object. Do I need to extend ObjectRepresentation class and use content type application/gzip or is there some way I can use the ObjectRepresentation class with some form of encoding. cheers /jima

RE: a gzip representation

2007-04-12 Thread Jerome Louvel
Alateras [mailto:[EMAIL PROTECTED] Envoyé : jeudi 12 avril 2007 15:19 À : [EMAIL PROTECTED] Objet : a gzip representation I was looking for some guidance on how i would package a gzipped java serialized object. Do I need to extend ObjectRepresentation class and use content type application/gzip

Re: a gzip representation

2007-04-12 Thread Jim Alateras
Jerome Louvel wrote: Hi Jim, You can have a look at the com.noelios.restlet.application.EncodeRepresentation class. So i can use it to wrap an ObjectRepresentation. Will the Encoding i pass across to it override the HTTP content-type header (i.e. if the encoding is set to gzip then the

Re: a gzip representation

2007-04-12 Thread Thierry Boileau
Hi Jim, I want to precise that the EncodeRepresentation automatically sets the content-encoding header and keep intact the content-type of the wrapped representation. It allows Firefox to decodes on the fly the gzip stream and restore the wrapped representation. If you want to use