Class 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 Detail

      • WebdavServlet

        public WebdavServlet()
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Servlet
        Overrides:
        destroy in class javax.servlet.GenericServlet
      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class javax.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)
      • 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 class javax.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: