January 18, 2006
Servlets and Restlets [UPDATED]
I was pondering recently, being involved in a project that involves both REST web services and Java, how on earth I was going to re-orient Java's servlet framework to operate in a more web-friendly way. Most servlets tend to produce URLs like "http://somewhere.or.other/servlet?do_something&page=234" rather than regular resource-oriented URLs suitable as HTTP command endpoints.
So, enter the RestLet! A framework for sticking the web resource model back into the servlet architecture. I've only perused the description on the site, but it looks pretty interesting. Its just bizarre how it requires an extra API to make Java behave "normally" in respect of web resources.
I'll give it a go and see how it works...
[UPDATE] I've also been pointed at Mojasef, which looks interesting, and sounds vaguely similar in approach to Zope.