You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2007/10/19 16:42:50 UTC

[jira] Closed: (SLING-67) Provide extensible default Servlets

     [ https://issues.apache.org/jira/browse/SLING-67?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed SLING-67.
----------------------------------

    Resolution: Fixed
      Assignee: Felix Meschberger

Changes have been applied, so I close this issue now.

> Provide extensible default Servlets
> -----------------------------------
>
>                 Key: SLING-67
>                 URL: https://issues.apache.org/jira/browse/SLING-67
>             Project: Sling
>          Issue Type: New Feature
>          Components: microsling
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>         Attachments: SLING-67.patch
>
>
> microsling has the SlingServlet and the AbstractSlingServlet which define a new API better exposing the fact, that HTTP methods should map to Java Methods. At the same time there is a clear path towards making this extensible. The drawback of the current implementation is, that the dispatching by HTTP method name happens in the MicroSlingServlet and is limited to the core HTTP methods. So adding support for more HTTP methods is not actually easily doable.
> I propose to replace the SlingServlet and AbstractSlingServlet by a SlingGetServlet (extends GenericServlet) and a GenericSlingServlet (extends SlingGetServlet).
> The SlingGetServlet incorporates support for the GET, HEAD, OPTIONS and TRACE methods and is intended for read-only applications. It may easily be extended to add support for more HTTP methods. While there can be no technical barrier here, we intend this class to be extended only with support for reader methods.
> The GenericSlingServlet extends the SlingGetServlet and adds support for the POST, PUT and DELETE methods and may also be extended with support for more HTTP methods. This class now is intended to also be extended with data modification methods.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.