Package org.alfresco.repo.webdav
Class WebDAVServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.alfresco.repo.webdav.WebDAVServlet
-
- All Implemented Interfaces:
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebDAVServlet.WebDAVInitParameters
Bean to hold injected initialization parameters.
-
Field Summary
Fields Modifier and Type Field Description protected Hashtable<String,Class<? extends WebDAVMethod>>
m_davMethods
static 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 handlerprotected WebDAVHelper
getDAVHelper()
static NodeRef
getWebdavRootNode()
void
init(javax.servlet.ServletConfig config)
Initialize the servletprotected 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
-
-
-
-
Field Detail
-
WEBDAV_PREFIX
public static final String WEBDAV_PREFIX
- See Also:
- Constant Field Values
-
m_davMethods
protected Hashtable<String,Class<? extends WebDAVMethod>> m_davMethods
-
-
Method Detail
-
service
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
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
- HttpServletRequestresponse
- HttpServletResponse- Returns:
- WebDAVMethod
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
Initialize the servlet- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Parameters:
config
- ServletConfig- Throws:
javax.servlet.ServletException
-
getDAVHelper
protected WebDAVHelper getDAVHelper()
-
getWebdavRootNode
public static NodeRef getWebdavRootNode()
- Returns:
- root node for WebDAV
-
-