org.apache.jackrabbit.j2ee
Class RepositoryAccessServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.jackrabbit.j2ee.RepositoryAccessServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RepositoryAccessServlet
extends javax.servlet.http.HttpServlet

This Class implements a servlet that is used as unified mechanism to retrieve a jcr repository either through JNID, RMI or JCRWebdavServer.

See Also:
Serialized Form

Field Summary
static String INIT_PARAM_REPOSITORY_NAME
          the 'repository-name' init parameter
static String INIT_PARAM_RMI_URI
          the 'rmi-uri' init parameter
 
Constructor Summary
RepositoryAccessServlet()
           
 
Method Summary
static Repository getRepository(javax.servlet.ServletContext ctx)
          Returns the JSR170 repository
 void init()
          Initializes this servlet
 
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
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
 

Field Detail

INIT_PARAM_REPOSITORY_NAME

public static final String INIT_PARAM_REPOSITORY_NAME
the 'repository-name' init parameter

See Also:
Constant Field Values

INIT_PARAM_RMI_URI

public static final String INIT_PARAM_RMI_URI
the 'rmi-uri' init parameter

See Also:
Constant Field Values
Constructor Detail

RepositoryAccessServlet

public RepositoryAccessServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initializes this servlet

Throws:
javax.servlet.ServletException

getRepository

public static Repository getRepository(javax.servlet.ServletContext ctx)
Returns the JSR170 repository

Returns:
a jsr170 repository
Throws:
IllegalStateException - if the repository is not available in the context.


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