Fabio,

In addition to my other reply, I should mentioned that I was using Restlet
1.2 trunk for testing.
 
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
 

-----Message d'origine-----
De : webp...@tigris.org [mailto:webp...@tigris.org] 
Envoyé : mardi 7 avril 2009 10:38
À : discuss@restlet.tigris.org
Objet : JAXRS and media type via query parameters

Hi everybody,

I am using the JAX-RS extension for developing my application.

I would like to specify the accepted formats using query parameters because
the client I am using is not able to send accept headers.

I did this in the JaxRsApplication create root method:

getTunnelService().setEnabled(true);
getTunnelService().setExtensionsTunnel(true);
getMetadataService().setEnabled(true);

but requesting a URI using, for example,

http://..../resource?media=json (I also tried media=application/json,
accept=application/json) doesn't work.

Any hint?

Thanks for your help.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=15736
79

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1594927

Reply via email to