One of the goals for the REST interface for GlassFish 4.0 is to create a
set of client classes that will help hide as much as possible of the
complexities of REST calls, payload processing, etc. To that end, in
the past few days I have committed a fair amount of code that creates
such a client, not only in Java, but Python as well (Ruby and maybe PHP
are in the offing, time permitting). I've posted a couple of articles
showing how to generate the clients and how to use them:
http://blogs.steeplesoft.com/2011/10/glassfish-rest-interface-a-client-side-perspective/
http://blogs.steeplesoft.com/2011/10/glassfish-rest-client-goes-to-the-flying-circus/
Two warnings: my attempt at humor is in those blogs :P, and the
code/usage under discussion is still in flux, so things may change some
before the final release.
I would appreciate any feedback anyone may have on any aspect of this. :)
--
Jason Lee
Senior Member of Technical Staff, Oracle
GlassFish Team
Phone +1 (405) 216-3193
http://blogs.steeplesoft.com