Hi All,

I have a Server resource with a put method declared like:

@Put
 public String perist(StringRepresentation requestRep)


However its actually a string of JSON data. The server side doesn't
need to actually parse the JSON data, as its just returned to the
client side via a Get. For correctness sake I would like it to accept
it with the correct Media Type. However if I do that I get an
exception since Restlet doesn't think its a supported media type.

I have tried setting it via the annotion.

@Put("json") and @Put("json:json") however nether of those worked.

How do I tell restlet what MediaType it actually supports rather than
it trying to infer it from the representation.

Thanks,

Charlie M

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

Reply via email to