|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.jackrabbit.j2ee.RepositoryAccessServlet
public class RepositoryAccessServlet
This Class implements a servlet that is used as unified mechanism to retrieve a jcr repository either through JNDI or RMI.
| Nested Class Summary | |
|---|---|
protected static class |
RepositoryAccessServlet.ClientFactoryDelegater
optional class for RMI, will only be used, if RMI client is present |
protected static class |
RepositoryAccessServlet.RMIClientFactoryDelegater
optional class for RMI, will only be used, if RMI server is present |
| Field Summary | |
|---|---|
static java.lang.String |
INIT_PARAM_BOOTSTRAP_CONFIG
initial param name for the bootstrap config location |
| Constructor Summary | |
|---|---|
RepositoryAccessServlet()
|
|
| Method Summary | |
|---|---|
javax.jcr.Repository |
getRepository()
Returns the JCR repository |
static javax.jcr.Repository |
getRepository(javax.servlet.ServletContext ctx)
Returns the JCR repository |
protected javax.jcr.Repository |
getRepositoryByContextAttribute()
If our config said so, try to retrieve a Repository from the ServletContext |
protected java.lang.String |
getServerFactoryDelegaterClass()
Return the fully qualified name of the class providing the client repository. |
void |
init()
Initializes the servlet. Please note that only one repository startup servlet may exist per webapp. |
| 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 |
|---|
public static final java.lang.String INIT_PARAM_BOOTSTRAP_CONFIG
| Constructor Detail |
|---|
public RepositoryAccessServlet()
| Method Detail |
|---|
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException - if a same servlet is already registered or of
another initialization error occurs.protected javax.jcr.Repository getRepositoryByContextAttribute()
protected java.lang.String getServerFactoryDelegaterClass()
RepositoryAccessServlet.ClientFactoryDelegater interface.
public javax.jcr.Repository getRepository()
java.lang.IllegalStateException - if the repository is not available in the context.public static javax.jcr.Repository getRepository(javax.servlet.ServletContext ctx)
ctx - the servlet context
java.lang.IllegalStateException - if the repository is not available in the context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||