org.apache.geronimo.webdav
Class CatalinaDAVRepository

java.lang.Object
  extended byorg.apache.geronimo.webdav.CatalinaDAVRepository
All Implemented Interfaces:
DAVRepository, org.apache.geronimo.gbean.GBeanLifecycle

public class CatalinaDAVRepository
extends Object
implements DAVRepository, org.apache.geronimo.gbean.GBeanLifecycle

DAVRepository implementation using the Tomcat WebDAV servlet as the processing servlet.

Version:
$Revision: 1.6 $ $Date: 2004/06/10 23:12:25 $

Constructor Summary
CatalinaDAVRepository(File aRoot, String aContext, String anHost)
          Builds a DAVRepository relying on Tomcat WebDAV servlet in order to process the WebDAV request.
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 String getContext()
          Gets the context of the WebDAV servlet.
 DirContext getDirContext()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 Class getHandlingServlet()
          Gets the WebDAV servlet Class.
 String getHost()
          Gets the host name filter.
 File getRoot()
          Gets the root of the directory exposed by this repository.
 Map getServletContextAttr()
          Gets the servlet context attributes.
 Map getServletInitParam()
          Gets the servlet initialization parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalinaDAVRepository

public CatalinaDAVRepository(File aRoot,
                             String aContext,
                             String anHost)
Builds a DAVRepository relying on Tomcat WebDAV servlet in order to process the WebDAV request.

Parameters:
aRoot - Root of the directory/DirContext exposed by this repository.
aContext - Context within which the servlet should be mounted.
anHost - Host filter, if any.
Method Detail

getHandlingServlet

public Class getHandlingServlet()
Description copied from interface: DAVRepository
Gets the WebDAV servlet Class.

Specified by:
getHandlingServlet in interface DAVRepository
Returns:
WebDAV servlet class.

getHost

public String getHost()
Description copied from interface: DAVRepository
Gets the host name filter.
If defined, only the requests for this host are forwarded to this repository.

Specified by:
getHost in interface DAVRepository
Returns:
Host name filter.

getContext

public String getContext()
Description copied from interface: DAVRepository
Gets the context of the WebDAV servlet.

Specified by:
getContext in interface DAVRepository
Returns:
Context name.

getRoot

public File getRoot()
Gets the root of the directory exposed by this repository.

Returns:
Root of the exposed directory.

getDirContext

public DirContext getDirContext()

getServletContextAttr

public Map getServletContextAttr()
Description copied from interface: DAVRepository
Gets the servlet context attributes.

Specified by:
getServletContextAttr in interface DAVRepository
Returns:
Map of attribute name to value.

getServletInitParam

public Map getServletInitParam()
Description copied from interface: DAVRepository
Gets the servlet initialization parameters.

Specified by:
getServletInitParam in interface DAVRepository
Returns:
Map of parameter name to value.

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doStop

public void doStop()
            throws org.apache.geronimo.gbean.WaitingException
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.