In the tutorial here:
http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-restlet/303-restlet.html#dsy303-restlet_jse
The last section talks about how if the Contact class is not available you can
still retrieve a JSON representation using this:
cr.get(MediaType.APPLICATION_JSON).write(System.out);
The ContactResource interface does not specify any media type on the @Get
annotation of the retrieve method. Magically this seems to work for the
tutorial.
In my client I tried this and what gets written out, no matter what MediaType I
try, looks like the java serialized object bits...certainly not JSON.
Is the tutorial correct that it's possible? And if so any ideas why it might
work like I described?
Thanks,
Dennis
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2804342