it.could.webdav.replication
Class DAVReplicator

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byit.could.webdav.replication.DAVReplicator
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class DAVReplicator
extends HttpServlet

The DAVReplicator class is a DAVListener replicating all content to the WebDAV repository specified at construction.

Author:
Pier Fumagalli
See Also:
Serialized Form

Constructor Summary
DAVReplicator()
          Create a new DAVServlet instance.
 
Method Summary
 void destroy()
          Destroy DAVServlet instance interrupting all running DAVReplica instances.
 void init(ServletConfig config)
          Initialize this Servlet instance.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

DAVReplicator

public DAVReplicator()

Create a new DAVServlet instance.

Method Detail

init

public void init(ServletConfig config)
          throws ServletException

Initialize this Servlet instance.

This servlet requires a couple of initialization parameters: the first one is "repository" indicating the name of the DAVServlet in the "web.xml" deployment descriptor whose repository should be replicated.

The second required parameter "replicas" must contain a (whitespace separated list of) URL(s) where the original repository should be replicated to.

Finally, when set to true, the optional parameter debugEnabled will enable logging of method invocation and events in the repository.

Throws:
ServletException

destroy

public void destroy()

Destroy DAVServlet instance interrupting all running DAVReplica instances.