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
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
2 matches
Mail list logo