Class RemoteRepositoryServlet

  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.jackrabbit.servlet.AbstractRepositoryServlet
              extended by org.apache.jackrabbit.servlet.remote.RemoteRepositoryServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
JNDIRemoteRepositoryServlet, RMIRemoteRepositoryServlet, URLRemoteRepositoryServlet

public abstract class RemoteRepositoryServlet
extends AbstractRepositoryServlet

Abstract base class for servlets that make a remote repository available locally in the servlet context.

The supported initialization parameters of this servlet are:

Name of the servlet context attribute to put the repository in. The default value is "javax.jcr.Repository".
Name of the local adapter factory class used to create the local adapter for the remote repository. The configured class should have public constructor that takes no arguments. The default class is JackrabbitClientAdapterFactory.

This servlet can also be mapped to the URL space. See AbstractRepositoryServlet for the details.

See Also:
Serialized Form

Constructor Summary
Method Summary
protected  LocalAdapterFactory getLocalAdapterFactory()
          Instantiates and returns the configured local adapter factory.
Methods inherited from class org.apache.jackrabbit.servlet.AbstractRepositoryServlet
destroy, doGet, getAttributeName, getInitParameter, getRepositoryFactory, init
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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


public RemoteRepositoryServlet()
Method Detail


protected LocalAdapterFactory getLocalAdapterFactory()
                                              throws javax.servlet.ServletException
Instantiates and returns the configured local adapter factory.

local adapter factory
javax.servlet.ServletException - if the factory could not be instantiated

Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.