org.modeshape.web.jcr.webdav
Class ModeShapeWebdavServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.webdav.WebDavServletBean
              extended by net.sf.webdav.WebdavServlet
                  extended by org.modeshape.web.jcr.webdav.ModeShapeWebdavServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ModeShapeWebdavServlet
extends net.sf.webdav.WebdavServlet

Custom servlet implementation that provides WebDAV access to a JCR repository. Nodes in the repository with a specified primary type (nt:file, by default) are treated as WebDAV resources (files) while nodes with any other primary type are treated as WebDAV folders.

See Also:
Serialized Form

Field Summary
static String INIT_CONTENT_PRIMARY_TYPE_NAMES
           
static String INIT_NEW_CONTENT_PRIMARY_TYPE_NAME
           
static String INIT_NEW_FOLDER_PRIMARY_TYPE_NAME
           
static String INIT_NEW_RESOURCE_PRIMARY_TYPE_NAME
           
static String INIT_REQUEST_RESOLVER_CLASS_NAME
           
static String INIT_RESOURCE_PRIMARY_TYPES_NAMES
           
 
Fields inherited from class net.sf.webdav.WebDavServletBean
MD5_ENCODER, MD5_HELPER
 
Constructor Summary
ModeShapeWebdavServlet()
           
 
Method Summary
protected  net.sf.webdav.IWebdavStore constructStore(String clazzName, File root)
          
 void init()
           
protected  void service(HttpServletRequest req, HttpServletResponse resp)
           This method also sets and clears a thread-local reference to the incoming request.
 
Methods inherited from class net.sf.webdav.WebDavServletBean
init
 
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

INIT_REQUEST_RESOLVER_CLASS_NAME

public static final String INIT_REQUEST_RESOLVER_CLASS_NAME
See Also:
Constant Field Values

INIT_CONTENT_PRIMARY_TYPE_NAMES

public static final String INIT_CONTENT_PRIMARY_TYPE_NAMES
See Also:
Constant Field Values

INIT_RESOURCE_PRIMARY_TYPES_NAMES

public static final String INIT_RESOURCE_PRIMARY_TYPES_NAMES
See Also:
Constant Field Values

INIT_NEW_FOLDER_PRIMARY_TYPE_NAME

public static final String INIT_NEW_FOLDER_PRIMARY_TYPE_NAME
See Also:
Constant Field Values

INIT_NEW_RESOURCE_PRIMARY_TYPE_NAME

public static final String INIT_NEW_RESOURCE_PRIMARY_TYPE_NAME
See Also:
Constant Field Values

INIT_NEW_CONTENT_PRIMARY_TYPE_NAME

public static final String INIT_NEW_CONTENT_PRIMARY_TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

ModeShapeWebdavServlet

public ModeShapeWebdavServlet()
Method Detail

constructStore

protected net.sf.webdav.IWebdavStore constructStore(String clazzName,
                                                    File root)

Overrides:
constructStore in class net.sf.webdav.WebdavServlet

init

public void init()
          throws ServletException
Overrides:
init in class net.sf.webdav.WebdavServlet
Throws:
ServletException

service

protected void service(HttpServletRequest req,
                       HttpServletResponse resp)
                throws ServletException,
                       IOException

This method also sets and clears a thread-local reference to the incoming request.

Overrides:
service in class net.sf.webdav.WebDavServletBean
Throws:
ServletException
IOException


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.