Re: Default representation again

2011-02-09 Thread Danny Leshem
For future reference, I solved this by adding the following line to my Restlet Application's constructor. getMetadataService().setDefaultMediaType(MediaType.TEXT_HTML); On Wed, Feb 2, 2011 at 7:06 PM, Danny Leshem dles...@gmail.com wrote: I have a resource that returns representations in

Default representation again

2011-02-02 Thread Danny Leshem
I have a resource that returns representations in either text/html or application/json. Everything works as expected when clients specify the Accept HTTP header. Otherwise, the server returns JSON by default, whereas I want it to return HTML. The question is how to do that. A previous