Class IXClientServletUniqueConnection

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
de.elo.ix.client.webapp.servlet.IXClientServlet
de.elo.ix.client.webapp.servlet.IXClientServletUniqueConnection
All Implemented Interfaces:
de.elo.utils.webapp.status.StatusPageHandler.StatusDataCallback, jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public abstract class IXClientServletUniqueConnection extends IXClientServlet
This class can be used as a base class for a servlet that uses a unique Indexserver connection. The inherited servlet class cannot override the init, service and destroy methods. It should override the IXClientServlet_init, IXClientServlet_service and IXClientServlet_destroy functions instead.
See Also:
  • Constructor Details

  • Method Details

    • initAfterConnect

      public abstract void initAfterConnect()
      Implement this method to perform initialization after the connection to the Indexserver has been established. Do not override the Servlet.init or IXClientServlet_init functions.
      See Also:
    • destroyBeforeDisconnect

      public abstract void destroyBeforeDisconnect()
      Implement this mehtod to cleanup resources before the connection to the Indexserver is closed. Do not override the Servlet.destroy or IXClientServlet_destroy functions.
    • getConnection

      public IXConnection getConnection() throws byps.RemoteException
      Returns the Indexserver connection.
      Returns:
      Indexserver connection
      Throws:
      byps.RemoteException
      IllegalStateException - instead of InterruptedException
    • IXClientServlet_init

      protected void IXClientServlet_init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException
      Description copied from class: IXClientServlet
      Initialization should be done in this function rather than in an override of Servlet.init. This ensures that the internally used IXClientServieeHandler is initialized. Furthermore Logging.get().ndc().push is used to identify the logger output.
      Specified by:
      IXClientServlet_init in class IXClientServlet
      Parameters:
      config - ServletConfig object
      Throws:
      jakarta.servlet.ServletException
    • IXClientServlet_destroy

      protected void IXClientServlet_destroy()
      Description copied from class: IXClientServlet
      This mehtod has to be implemented to cleanup resources. The Servlet.destroy method should not be overriden by subclasses.
      Specified by:
      IXClientServlet_destroy in class IXClientServlet