Package org.alfresco.repo.webdav
Class WebDAVServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.alfresco.repo.webdav.WebDAVServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class WebDAVServlet
extends jakarta.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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBean to hold injected initialization parameters. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Hashtable<String,Class<? extends WebDAVMethod>> static final StringFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WebDAVMethodcreateMethod(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create a WebDAV method handlerprotected WebDAVHelperstatic NodeRefvoidinit(jakarta.servlet.ServletConfig config) Initialize the servletprotected voidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
WEBDAV_PREFIX
- See Also:
-
m_davMethods
-
-
Constructor Details
-
WebDAVServlet
public WebDAVServlet()
-
-
Method Details
-
service
protected void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
servicein classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException- See Also:
-
HttpServlet.service(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
-
createMethod
protected WebDAVMethod createMethod(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create a WebDAV method handler- Parameters:
request- HttpServletRequestresponse- HttpServletResponse- Returns:
- WebDAVMethod
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException Initialize the servlet- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Parameters:
config- ServletConfig- Throws:
jakarta.servlet.ServletException
-
getDAVHelper
-
getWebdavRootNode
- Returns:
- root node for WebDAV
-