public class RepositoryAccessServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Class and Description |
---|---|
protected static class |
RepositoryAccessServlet.ClientFactoryDelegater
Deprecated.
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
optional class for RMI, will only be used, if RMI client is present |
protected static class |
RepositoryAccessServlet.RMIClientFactoryDelegater
Deprecated.
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
optional class for RMI, will only be used, if RMI server is present |
Modifier and Type | Field and Description |
---|---|
static String |
INIT_PARAM_BOOTSTRAP_CONFIG
initial param name for the bootstrap config location
|
Constructor and Description |
---|
RepositoryAccessServlet() |
Modifier and Type | Method and Description |
---|---|
BootstrapConfig |
getBootstrapConfig()
Returns the config that was used to bootstrap this servlet.
|
static RepositoryAccessServlet |
getInstance(javax.servlet.ServletContext ctx)
Returns the instance of this servlet
|
Repository |
getRepository()
Returns the JCR repository
|
static Repository |
getRepository(javax.servlet.ServletContext ctx)
Returns the JCR repository
|
protected Repository |
getRepositoryByContextAttribute()
If our config said so, try to retrieve a Repository from the ServletContext
|
protected 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. |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public static final String INIT_PARAM_BOOTSTRAP_CONFIG
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
- if a same servlet is already registered or of
another initialization error occurs.public static RepositoryAccessServlet getInstance(javax.servlet.ServletContext ctx)
ctx
- the servlet contextprotected Repository getRepositoryByContextAttribute()
protected String getServerFactoryDelegaterClass()
RepositoryAccessServlet.ClientFactoryDelegater
interface.public Repository getRepository()
IllegalStateException
- if the repository is not available in the context.public static Repository getRepository(javax.servlet.ServletContext ctx)
ctx
- the servlet contextIllegalStateException
- if the repository is not available in the context.public BootstrapConfig getBootstrapConfig()
null
.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.