Re: Multiple content types

2009-07-06 Thread Thierry Boileau
1692215...@... >>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3043073&i=0>] >>> *Sent:* Friday, June 05, 2009 1:29 PM >>> *To:* Sherif >>> *Subject:* Re: Multiple content types >>> >>> Have a look at >>> http://ww

RE: Re: Multiple content types

2009-07-05 Thread Jerome Louvel
der ~ http://www.noelios.com -Message d'origine- De : Sherif Ahmed [mailto:sherifah...@hotmail.com] Envoyé : mercredi 1 juillet 2009 20:00 À : discuss@restlet.tigris.org Objet : RE: Re: Multiple content types Okay.. I had to add an XLS Representation for a resource and I wan to suppo

RE: Re: Multiple content types

2009-07-01 Thread Sherif Ahmed
* *if* ( variant.getMediaType() == MediaType./TEXT_PLAIN/){ > > > > representation = *new* StringRepresentation( > > > > "hello, world", MediaType./TEXT_PLAIN/); > > > > } > > > > *return* representation; > > > > } > >

Re: Multiple content types

2009-06-08 Thread Jonathan Hall
> } > > } > > However when I call the service using the following URL > http://localhost:8080/firstStepsServlet/Hello.js the Variant type in > the HelloWorldResource is of MediaType.TEXT_PLAIN > > Thanks for Your help > > *From:* Jonathan Hall (via Nabble) > [ma

RE: Multiple content types

2009-06-08 Thread Sherif
RL http://localhost:8080/firstStepsServlet/Hello.js the Variant type in the HelloWorldResource is of MediaType.TEXT_PLAIN Thanks for Your help From: Jonathan Hall (via Nabble) [mailto:ml-user+125526-1692215...@n2.nabble.com] Sent: Friday, June 05, 2009 1:29 PM To: Sherif Subject: Re: Multiple c

Re: Multiple content types

2009-06-05 Thread Jonathan Hall
Have a look at http://www.restlet.org/documentation/2.0/api/org/restlet/service/TunnelService.html getTunnelService().setExtensionsTunnel(true); Jon Sherif wrote: > I realize RESTLet supports multiple encodings based on the Accept Encoding > headers. Does Restlet also have a way to allow encodi

Multiple content types

2009-06-05 Thread Sherif
I realize RESTLet supports multiple encodings based on the Accept Encoding headers. Does Restlet also have a way to allow encodings based on URI patter e.g. http://mystores/items/1000.json or something like that ? -- View this message in context: http://n2.nabble.com/Multiple-content-types