> 18.07.2001 09:54:27, Christopher Lenz <[EMAIL PROTECTED]> wrote:
> >should I make a simpler patch that let's you disable directory
> >browsing but doesn't move the directory browsing functionality in a
> >new class ? I'd really like to see this functionality in the basic
> >slide servlet (i.e. without having to create my own WebdavServlet and
> >GetMethod subclasses).
>
> Okay, I'm now working on an alternative design that might be a lot
> cleaner, so that:
> - directory browsing can be disabled for the WebdavServlet and
> - subclasses of WebdavServlet can easily implement custom handling
>   of requests on collections, without having to subclass GetMethod
>   *and* WebdavServlet, and maybe even PostMethod.
> In my project, I'm trying to use the Slide WebdavServlet for handling
> WebDAV communication, but extend the servlet to provide a custom look
> and functionality for the collection html-pages, using a JSP-taglib to
> display the directory contents, properties etc. I think this is
> something that other slide-based servlets might want, too.

That looks like a good idea.

> So, I'd like to have the GetMethod class 'dispatch' GET requests on
> collections back to the servlets doGet() method (the standard
> implementation of doGet() would be to return a FORBIDDEN response
> code, or generate the standard directory-index). Similarly, POST
> requests on collections should also be handled by the servlets doPost
> () method. Both doGet() and doPost() would not get called when non-
> collection resources are requested.
>
> Does that make sense ?

Yes, but a possible side effect is that it creates some small namespace
conflicts. For example, if you have a /fancy/fancydir.jsp to display the
collections, then these paths cannot exist in the Slide namespace. It's not
that bad, though.

Remy

Reply via email to