org.opencrx.application.uses.net.sf.webdav
Class AbstractWebDavServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opencrx.application.uses.net.sf.webdav.AbstractWebDavServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
CalDavServlet, CardDavServlet, WebDavServlet

public abstract class AbstractWebDavServlet
extends HttpServlet

See Also:
Serialized Form

Constructor Summary
AbstractWebDavServlet()
           
 
Method Summary
protected abstract  WebDavStore constructStore()
           
 void init(ServletConfig conf)
           
 void init(WebDavStore store, boolean lazyFolderCreationOnPut)
           
protected  WebDavMethod newDoCopy(WebDavStore store, DoDelete doDelete, boolean readOnly)
           
protected  WebDavMethod newDoDelete(WebDavStore store, boolean readOnly)
           
protected  WebDavMethod newDoGet(WebDavStore store)
           
protected  WebDavMethod newDoHead(WebDavStore store)
           
protected  WebDavMethod newDoLock(WebDavStore store, boolean readOnly)
           
protected  WebDavMethod newDoMkcol(WebDavStore store, boolean readOnly)
           
protected  WebDavMethod newDoMove(WebDavStore store, boolean readOnly)
           
protected  WebDavMethod newDoOptions(WebDavStore store)
           
protected  WebDavMethod newDoPropfind(WebDavStore store)
           
protected  WebDavMethod newDoProppatch(WebDavStore store, boolean readOnly)
           
protected  WebDavMethod newDoPut(WebDavStore store, boolean lazyFolderCreationOnPut, boolean readOnly)
           
protected  WebDavMethod newDoReport(WebDavStore store)
           
protected  WebDavMethod newDoUnlock(WebDavStore store, boolean readOnly)
           
protected  void service(HttpServletRequest req, HttpServletResponse resp)
          Handles the special WebDAV methods.
 
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
 

Constructor Detail

AbstractWebDavServlet

public AbstractWebDavServlet()
Method Detail

init

public void init(ServletConfig conf)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

constructStore

protected abstract WebDavStore constructStore()

newDoGet

protected WebDavMethod newDoGet(WebDavStore store)

newDoReport

protected WebDavMethod newDoReport(WebDavStore store)

newDoHead

protected WebDavMethod newDoHead(WebDavStore store)

newDoDelete

protected WebDavMethod newDoDelete(WebDavStore store,
                                   boolean readOnly)

newDoCopy

protected WebDavMethod newDoCopy(WebDavStore store,
                                 DoDelete doDelete,
                                 boolean readOnly)

newDoLock

protected WebDavMethod newDoLock(WebDavStore store,
                                 boolean readOnly)

newDoUnlock

protected WebDavMethod newDoUnlock(WebDavStore store,
                                   boolean readOnly)

newDoMove

protected WebDavMethod newDoMove(WebDavStore store,
                                 boolean readOnly)

newDoMkcol

protected WebDavMethod newDoMkcol(WebDavStore store,
                                  boolean readOnly)

newDoOptions

protected WebDavMethod newDoOptions(WebDavStore store)

newDoPut

protected WebDavMethod newDoPut(WebDavStore store,
                                boolean lazyFolderCreationOnPut,
                                boolean readOnly)

newDoPropfind

protected WebDavMethod newDoPropfind(WebDavStore store)

newDoProppatch

protected WebDavMethod newDoProppatch(WebDavStore store,
                                      boolean readOnly)

init

public void init(WebDavStore store,
                 boolean lazyFolderCreationOnPut)
          throws ServletException
Throws:
ServletException

service

protected void service(HttpServletRequest req,
                       HttpServletResponse resp)
                throws ServletException,
                       IOException
Handles the special WebDAV methods.

Overrides:
service in class HttpServlet
Throws:
ServletException
IOException


This software is published under the BSD license. Copyright © 2003-2013, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.