views:

107

answers:

2

Hi there,

I am looking for a simple Java library (having a friendly license; Apache2, MIT, BSD) that I could use for parsing http RESTful requests. I will be taking care of representing the resources but I don't want to reinvent the mapping and the URI transformations, if possible?! I need a simple support for parsing routes, such as:

/search/{query}/page/{pageNo}
/list/products/{productId}
...etc

Also, I don't want to use annotations because I am planning to allow the routes to be declared in simple configuration files such as: properties or xml.

The framework that does exactly what I want and I am very used with, is: RESTLET, however its license will not allow me to use parts of it (code) in my open source project. My project will be released under the Apache2 license. Sorry for my English, and I appreciate your answer.

Thank you,

A: 

I'm not sure if this is exactly what you are looking for but Spring 3 has some really good support for interacting with RESTful services, as well as developing RESTful services. It is very configuration driven which is a big plus. Here are a few links that might be able to help you figure out if Spring 3 is the right choice for you.

http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/

ralphL
I am trying to avoid Spring dependencies, but thank you too your for your answer.
Florin
+1  A: 

There is a new apache project for building RESTful web-services called wink. It's still in incubation mode but we're using it and its very stable and mature.

Since your project is released under the apache license and this is an apache project I think you are covered here.

LiorH
That's exactly what I was looking for. Many thanks!
Florin