On 14.11.2012, at 19:06, Dan Klco <dan.k...@sixdimensions.com> wrote:

> create a framework in Sling allow defining resource based servlets via 
> annotating methods

That would break Sling's RESTful mantra "addresses resources, not scripts". 
Servlets are scripts and do not define resources - this is done through the 
resource API as the first step in request handling, before the servlet is 
selected based on the resource type.

> and add support serializing responses

What do you think is missing here?

> and loading parameters from the request.

Same question here. You can have a service or helper that you use from within 
your servlets to read parameters the way you want. To generalize, you could 
have an abstract base servlet that does that for you.

In general, it's not a good idea when web frameworks try to completely abstract 
away the protocol (HTTP & REST-style).

Cheers,
Alex

Reply via email to