org.apache.jackrabbit.servlet.remote
Class URLRemoteRepositoryServlet

java.lang.Object
  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
                  extended by org.apache.jackrabbit.servlet.remote.URLRemoteRepositoryServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class URLRemoteRepositoryServlet
extends RemoteRepositoryServlet

Servlet that makes a remote repository from a ULR available as an attribute in the servlet context.

The supported initialization parameters of this servlet are:

javax.jcr.Repository
Name of the servlet context attribute to put the repository in. The default value is "javax.jcr.Repository".
org.apache.jackrabbit.rmi.client.LocalAdapterFactory
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.
url
URL of the remote repository.

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

Since:
1.4
See Also:
Serialized Form

Constructor Summary
URLRemoteRepositoryServlet()
           
 
Method Summary
protected  Repository getRepository()
          Returns the remote repository at the given URL.
 
Methods inherited from class org.apache.jackrabbit.servlet.remote.RemoteRepositoryServlet
getLocalAdapterFactory
 
Methods inherited from class org.apache.jackrabbit.servlet.AbstractRepositoryServlet
destroy, doGet, getAttributeName, getInitParameter, 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

URLRemoteRepositoryServlet

public URLRemoteRepositoryServlet()
Method Detail

getRepository

protected Repository getRepository()
                            throws RepositoryException
Returns the remote repository at the given URL.

Specified by:
getRepository in class AbstractRepositoryServlet
Returns:
repository
Throws:
RepositoryException - if the repository could not be accessed


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