Class RemoteBindingServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
    Direct Known Subclasses:
    JNDIRemoteBindingServlet, RMIRemoteBindingServlet, URLRemoteBindingServlet

    @Deprecated(forRemoval=true)
    public class RemoteBindingServlet
    extends javax.servlet.http.HttpServlet
    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 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, 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 void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Outputs the remote repository reference as a serialized stream.
      protected RemoteRepository getRemoteRepository()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the configured remote repository reference.
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Constructor Detail

      • RemoteBindingServlet

        public RemoteBindingServlet()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • getRemoteRepository

        protected RemoteRepository getRemoteRepository()
                                                throws javax.servlet.ServletException
        Deprecated, for removal: This API element is subject to removal in a future version.
        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,
                             IOException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Outputs the remote repository reference as a serialized stream.
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Parameters:
        request - HTTP request
        response - HTTP response
        Throws:
        javax.servlet.ServletException - if the remote reference is not available
        IOException - on IO errors