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
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
* *if* ( variant.getMediaType() == MediaType./TEXT_PLAIN/){
> >
> > representation = *new* StringRepresentation(
> >
> > "hello, world", MediaType./TEXT_PLAIN/);
> >
> > }
> >
> > *return* representation;
> >
> > }
> >
> }
>
> }
>
> 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
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
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
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
7 matches
Mail list logo