Tim thanks again!
You helped me before with your solution to modify the objectmapper so now I
did as you said and found out that by changing:
private static final VariantInfo VARIANT_JSON = new VariantInfo(
MediaType.APPLICATION_JSON);
a new variant:
private static final VariantInfo VARIANT_JSON = new VariantInfo(
MediaType.APPLICATION_ALL);
And then in the toRepresentation method I modified:
if (target.getMediaType() == null) {
target.setMediaType(MediaType.APPLICATION_JSON);
}
taking away the if so I get a JSON Content answer.
Thanks again!!!
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Changing-content-type-tp6036044p6037091.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2705142