public class JackrabbitRepositoryServlet extends AbstractRepositoryServlet
The supported initialization parameters of this servlet are:
org.apache.jackrabbit.core.RepositoryContext".
javax.jcr.Repository".
jackrabbit-repository". The home directory is
automatically created during servlet initialization if it does
not already exist.
repository.xml" within the configured repository home
directory. A standard configuration file is automatically copied to
the configured location during servlet initialization if the file
does not already exist.
The repository servlet can also be mapped to the URL space. See
AbstractRepositoryServlet for the details.
| Constructor and Description |
|---|
JackrabbitRepositoryServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Removes the repository from the servlet context and shuts it down.
|
protected Repository |
getRepository()
Returns the configured repository instance.
|
void |
init()
Starts the repository instance and makes it available in the
servlet context.
|
doGet, getAttributeName, getInitParameterdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic void init()
throws javax.servlet.ServletException
init in class AbstractRepositoryServletjavax.servlet.ServletException - if the repository can not be startedpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class AbstractRepositoryServletprotected Repository getRepository()
getRepository in class AbstractRepositoryServletCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.