Package de.elo.ix.client.webapp.servlet
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
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 Summary
ConstructorsConstructorDescriptionIXClientServletUniqueConnection
(String programName, String programVersion, String mainPackage) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Implement this mehtod to cleanup resources before the connection to the Indexserver is closed.Returns the Indexserver connection.abstract void
Implement this method to perform initialization after the connection to the Indexserver has been established.protected void
This mehtod has to be implemented to cleanup resources.protected void
IXClientServlet_init
(jakarta.servlet.ServletConfig config) Initialization should be done in this function rather than in an override of Servlet.init.Methods inherited from class de.elo.ix.client.webapp.servlet.IXClientServlet
destroy, getApplication, init, initApplication, IXClientServlet_service, service, StatusPageHandler_updateStatusData
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
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
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 classIXClientServlet
- 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 classIXClientServlet
-