You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Russ Trotter <rt...@base2.cc> on 2002/06/24 20:47:33 UTC

[PATCH] Patch to allow more flexible WebdavServlet/DefaultServlet operation

Two patches attached, 
catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java
catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java

There are two main pieces to this patch:

1)  The addition of an "isDefaultServlet" initialization parameter to the 
WebdavServlet
 
   This allows the webdav servlet to be integrated as both the default servlet 
as well as a url-pattern prefix servlet.  Some small mods are made to 
generate correct HREF's in a PROPFIND request based on this parameter value.

2) Parameterize getResources() DefaultServlet and WebdavServlet to pass in a 
HttpServletRequest object so that DirContext's  can be created by derived 
servlets to return DirContext's on other request-based parameters, either in 
the URL or session or whatever.  The default behavior is to simply ignore the 
HttpServletRequest parameter and return the same DirContext that has always 
been returned (the one created on webapp initialization).


Lemme know if this can be applied by somebody.  Thanks