Package org.drjekyll.webdav
Class WebdavServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.drjekyll.webdav.WebdavServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class WebdavServlet extends javax.servlet.http.HttpServlet
Servlet which provides support for WebDAV level 2.the original class is org.apache.catalina.servlets.WebdavServlet by Remy Maucherat, which was heavily changed
- Author:
- Remy Maucherat
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebdavServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebdavStore
constructStore(String clazzName, File root)
void
destroy()
protected Principal
getUserPrincipal(javax.servlet.http.HttpServletRequest req)
Method that permit to customize the way user information are extracted from the request, default use JAASvoid
init()
void
init(WebdavStore store, String dftIndexFile, String insteadOf404, int nocontentLenghHeaders, boolean lazyFolderCreationOnPut)
protected MethodExecutor
register(String methodName, MethodExecutor method)
protected void
service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Handles the special WebDAV methods.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classjavax.servlet.GenericServlet
-
init
public void init() throws javax.servlet.ServletException
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
constructStore
protected WebdavStore constructStore(String clazzName, File root) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
init
public void init(WebdavStore store, String dftIndexFile, String insteadOf404, int nocontentLenghHeaders, boolean lazyFolderCreationOnPut)
-
register
protected MethodExecutor register(String methodName, MethodExecutor method)
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
Handles the special WebDAV methods.- Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
getUserPrincipal
protected Principal getUserPrincipal(javax.servlet.http.HttpServletRequest req)
Method that permit to customize the way user information are extracted from the request, default use JAAS- Parameters:
req
-- Returns:
-
-