Hello Rachel and Alex,
as mentionned by Alex a simple ServerResource is shown here ([1]). In your
case, you need to complete it with the following code:
@Post
public String accept(String message) {
return message;
}
Then, on client side, have a look at this sample code [2]. You can try
something like:
ClientResource resource = new ClientResource("http://.../yourresource");
// Write the response entity on the console
resource.post("hello, world").write(System.out);
Best regards,
Thierry Boileau
[1] http://wiki.restlet.org/docs_2.0/13-restlet/319-restlet.html
[2] http://wiki.restlet.org/docs_2.0/13-restlet/320-restlet.html
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2635306