Class RemoteBindingServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.jackrabbit.servlet.remote.RemoteBindingServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
- Direct Known Subclasses:
JNDIRemoteBindingServlet,RMIRemoteBindingServlet,URLRemoteBindingServlet
@Deprecated public class RemoteBindingServlet extends javax.servlet.http.HttpServlet
Deprecated.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 in servlet context available as a remote repository reference. By default this servlet makes the serialized reference available through HTTP GET, but subclasses can extend this behavior to bind the remote reference to various locations like JNDI or the RMI registry.The initialization parameters of this servlet are:
- javax.jcr.Repository
-
Name of the servlet context attribute that contains the repository.
The default value is "
javax.jcr.Repository". - org.apache.jackrabbit.rmi.server.RemoteAdapterFactory
- Name of the remote adapter factory class used to create the remote repository reference. The configured class should have public constructor that takes no arguments.
- Since:
- 1.4
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RemoteBindingServlet()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated.Outputs the remote repository reference as a serialized stream.protected RemoteRepositorygetRemoteRepository()Deprecated.Returns the configured remote repository reference.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
getRemoteRepository
protected RemoteRepository getRemoteRepository() throws javax.servlet.ServletException
Deprecated.Returns the configured remote repository reference. The remote repository is instantiated and memorized during the first call to this method.- Returns:
- remote repository
- Throws:
javax.servlet.ServletException- if the repository could not be instantiated
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOExceptionDeprecated.Outputs the remote repository reference as a serialized stream.- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Parameters:
request- HTTP requestresponse- HTTP response- Throws:
javax.servlet.ServletException- if the remote reference is not availableIOException- on IO errors
-
-