Class WebDAVServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class WebDAVServlet
    extends javax.servlet.http.HttpServlet
    Servlet that accepts WebDAV requests for the hub. The request is served by the hub's content repository framework and the response sent back using the WebDAV protocol.
    Author:
    gavinc
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Hashtable<java.lang.String,​java.lang.Class<? extends WebDAVMethod>> m_davMethods  
      static java.lang.String WEBDAV_PREFIX  
    • Constructor Summary

      Constructors 
      Constructor Description
      WebDAVServlet()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected WebDAVMethod createMethod​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Create a WebDAV method handler
      protected WebDAVHelper getDAVHelper()  
      static org.alfresco.service.cmr.repository.NodeRef getWebdavRootNode()  
      void init​(javax.servlet.ServletConfig config)
      Initialize the servlet
      protected void service​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_davMethods

        protected java.util.Hashtable<java.lang.String,​java.lang.Class<? extends WebDAVMethod>> m_davMethods
    • Constructor Detail

      • WebDAVServlet

        public WebDAVServlet()
    • Method Detail

      • service

        protected void service​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               java.io.IOException
        Overrides:
        service in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
        See Also:
        HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
      • createMethod

        protected WebDAVMethod createMethod​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
        Create a WebDAV method handler
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        Returns:
        WebDAVMethod
      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Initialize the servlet
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Parameters:
        config - ServletConfig
        Throws:
        javax.servlet.ServletException
      • getWebdavRootNode

        public static org.alfresco.service.cmr.repository.NodeRef getWebdavRootNode()
        Returns:
        root node for WebDAV