views:

54

answers:

2

Hi,

I'm looking for a lightweight REST library.

It must be small (in kb size) & Fast (In total execution time). The optimal solution is a single jar without any dependencies what so ever.

The application is designed to run on the AppEngine so the library should work on GAE/J platform.

Thanks for the helping,

Maxim.

+1  A: 

Try Jersey

https://jersey.dev.java.net/

http://wikis.sun.com/display/Jersey/Overview+of+JAX-RS+1.0+Features

https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html

http://dlc.sun.com/pdf/820-4867/820-4867.pdf

Its extensive use of Java annotations massively reduces the amount of boilerplate needed.

ggg
To clarify, the annotations are a feature of the JAX-RS standard, of which Jersey is simply an implementation. Other implementations exist, such as Restlet.
Avi Flax
+1  A: 

Take a look at http://www.restlet.org/ I have no idea if it will run on the Google App Engine.

Darrel Miller
Yes, it's officially supported by a GAE edition.
Avi Flax
@Avi Thanks for the clarification. I didn't even know Google App Engine could run Java stuff :-)
Darrel Miller
I've looked at restlet, the link from the "Will it play on AppEngine" points to this location http://wiki.restlet.org/docs_1.2/13-restlet/252-restlet.html which resolves to a 404... Generally I couldn't find any good documentation.
Maxim Veksler
@Maxim http://blog.noelios.com/2009/12/17/restlet-a-restful-middleware-for-gwt-gae-and-android/
Darrel Miller
@Maxim that's because they changed the version number of 1.2 to 2.0. But yeah, they should have redirects on those doc pages. Here's the correct URL: http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/252-restlet.html
Avi Flax