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/21 00:19:21 UTC

proposed minor change to WebdavServlet

Hello,

   I'm proposing a minor change to WebdavServlet.  In my application, I need 
the actually docBase of the inner-most DirContext to be dynamic dependent on 
request/session data.  I was thinking of the following:  

Create a method like this in WebdavServlet:

protected DirContext getResources(HttpServletRequest req)
{
   return super.getResources();
}

and replacing all calls to getResources()  in the doXX() methods with calls to 
getResources(request).

  Now, my app-specifc servlet can just override the above 
getResources(HttpServletRequest) method to do it's specific stuff and things 
hum merrily along.

  I'd like to submit a patch to WebdavServlet to do this ASAP, but wanted to 
get developer opinion on this before I do it? (specifically, Remy :-) )

Thanks,
russ

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>