Sun Web Developer Pack R1
By sandoz on Mar 14, 2007
I can finally talk openly about what has been keeping Marc and I very busy since last October. Namely, an early access RESTful API for Web services development (or if you prefer 'for Web application development').
In the process of designing and implementing this API we have gained quite a lot of experience on what a high-level, annotation-driven, Java API for RESTful Web services development might look like. I hope that the early access release will enable developers to try out the API and provide feedback. And in turn our experience and such feedback will provide the JSR-311 Expert Group with good technical guidance grounded in practical experience.
The current API in R1 represents our thinking back in December. We had an insanely short period between the start of development and feature freeze (about 1.5 months). We have used our experience and internal feedback on the R1 API to improve on the design and investigate more ideas such as:
- Static or dynamic resolving of relative resources using URI templates. (The Stapler project that is used as the underlying REST-based framework for Hudson has a very nice recursive algorithm for processing the path of a URI. Plus the ability for Hudson to plug-in additional applications is a very interesting feature.)
- Forwarding to JSPs (but not ruling out support for other scripting technologies like Jelly, or even using Groovy scripts, for producing views).
- Helper support for cookies, caching, etags, dates, pre-conditions, created content...
- Better DRY'isms (Don't Repeat Yourself).
However, enough on what is over the horizon! Over the next couple of weeks i plan to blog on explaining R1 features.