Hi All,
I am using Restlet 1.1, in represent method I am not getting proper MediaType
which I am passing in Accept in request header.
I tried to print getRequest().getClientInfo().getAcceptedMediaTypes()
It always gives [*/*:1.0] no matter what I pass in Accept.
I tried passing application/json
I have also added following line in constructor
getVariants().add(new Variant(MediaType.APPLICATION_XML));
getVariants().add(new Variant(MediaType.APPLICATION_JSON));
Any Clue?
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2663276