I am now only using the @Post("java") method to be able to use:
ClientResource client4 = new ClientResource(someURL);
CommentsResource commentsResource = client4.wrap(CommentsResource.class);
Representation representation4 = commentsResource.postJava(comment);

rather than the more generic:
ClientResource client4 = new ClientResource(someURL);
Representation representation4 = client4.post(commitment3);

my postJava() method doesn't do anything, it exists only to allow the code
to compile.  And since this is just a test case, it was convenient to be
able to make the call with a Java object (although I guess it would be just
one line of code to create a Json string).

In any case, it is working for me (in this somewhat roundabout way) - so no
need to spend any more time in the lotus position.  Unless of course, by
lotus position, you mean in the driver's seat of a Lotus Elise :) 

Thanks again for your thoughts!
RB


--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Mystery-of-Post-tp7338202p7374467.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to