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, getInitParameter
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void init() throws javax.servlet.ServletException
init
in class AbstractRepositoryServlet
javax.servlet.ServletException
- if the repository can not be startedpublic void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class AbstractRepositoryServlet
protected Repository getRepository()
getRepository
in class AbstractRepositoryServlet
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.