Class RMIRemoteRepositoryServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.jackrabbit.servlet.AbstractRepositoryServlet
-
- org.apache.jackrabbit.servlet.remote.RemoteRepositoryServlet
-
- org.apache.jackrabbit.servlet.remote.RMIRemoteRepositoryServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
@Deprecated(forRemoval=true) public class RMIRemoteRepositoryServlet extends RemoteRepositoryServlet
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Servlet that makes a repository from RMI available as an attribute in the servlet context.The supported initialization parameters of this servlet are:
- javax.jcr.Repository
-
Name of the servlet context attribute to put the repository in.
The default value is "
javax.jcr.Repository
". - org.apache.jackrabbit.rmi.client.LocalAdapterFactory
- Name of the local adapter factory class used to create the local adapter for the remote repository. The configured class should have public constructor that takes no arguments.
- url
-
RMI URL of the remote repository. The default value is
"
//localhost/javax/jcr/Repository
".
This servlet can also be mapped to the URL space. See
AbstractRepositoryServlet
for the details.- Since:
- 1.4
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RMIRemoteRepositoryServlet()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Repository
getRepository()
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns an RMI repository factory for the configured RMI URL.-
Methods inherited from class org.apache.jackrabbit.servlet.remote.RemoteRepositoryServlet
getLocalAdapterFactory
-
Methods inherited from class org.apache.jackrabbit.servlet.AbstractRepositoryServlet
destroy, doGet, getAttributeName, getInitParameter, init
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
getRepository
protected Repository getRepository() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.Creates and returns an RMI repository factory for the configured RMI URL.- Specified by:
getRepository
in classAbstractRepositoryServlet
- Returns:
- RMI repository factory
- Throws:
RepositoryException
- if the factory could not be created
-
-