public class ContextRepositoryServlet extends AbstractRepositoryServlet
The supported initialization parameters of this servlet are:
javax.jcr.Repository
".
javax.jcr.Repository
". The name of the source attribute
can be the same as the name of target attribute only if the source
context is different from the context of this servlet.
This servlet can also be mapped to the URL space. See
AbstractRepositoryServlet
for the details.
Constructor and Description |
---|
ContextRepositoryServlet() |
Modifier and Type | Method and Description |
---|---|
protected Repository |
getRepository()
Creates and returns the repository in the configured servlet
context attribute.
|
destroy, doGet, getAttributeName, getInitParameter, init
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
protected Repository getRepository() throws RepositoryException
getRepository
in class AbstractRepositoryServlet
RepositoryException
- if the repository could not be createdCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.