Package com.softwaremining.ui.web.socket
Class ScreenBean
java.lang.Object
com.softwaremining.ui.web.socket.ScreenBean
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionBindingListener,EventListener
- Direct Known Subclasses:
JSPScreenBean,XSLTScreenBean
public abstract class ScreenBean
extends Object
implements jakarta.servlet.http.HttpSessionBindingListener
Implementation of "HttpSessionBindingListener"
Causes an object to be notified when it is bound to or unbound from a session. The object is notified by an HttpSessionBindingEvent object.
For every incoming Session we get a new ScreenBean ... and it registers a new ThreadMultiplixer
Most of the work will be done by the ThreadMultiplexor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidacceptParameters(jakarta.servlet.http.HttpServletRequest request) final voidcloseForm(jakarta.servlet.http.HttpServletResponse response) abstract AbstractScreenvoiddestroy()voidgenerateReport(jakarta.servlet.http.HttpServletResponse response) abstract voidprocessResponse(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidsetHttpRequestParameters(jakarta.servlet.http.HttpServletRequest request) voidsetTargetInstance(Service targetInstance) voidvoidvalueBound(jakarta.servlet.http.HttpSessionBindingEvent event) Implementation of "HttpSessionBindingListener" interface method Notifies the object that it is being bound to a session and identifies the sessionvoidvalueUnbound(jakarta.servlet.http.HttpSessionBindingEvent event) Implementation of "HttpSessionBindingListener" interface method Notifies the object that it is being unbound from a session and identifies the session.
-
Field Details
-
targetInstance
-
-
Constructor Details
-
ScreenBean
-
-
Method Details
-
createScreen
-
processResponse
public abstract void processResponse(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
closeForm
public final void closeForm(jakarta.servlet.http.HttpServletResponse response) -
valueBound
public void valueBound(jakarta.servlet.http.HttpSessionBindingEvent event) Implementation of "HttpSessionBindingListener" interface method Notifies the object that it is being bound to a session and identifies the session- Specified by:
valueBoundin interfacejakarta.servlet.http.HttpSessionBindingListener
-
valueUnbound
public void valueUnbound(jakarta.servlet.http.HttpSessionBindingEvent event) Implementation of "HttpSessionBindingListener" interface method Notifies the object that it is being unbound from a session and identifies the session.- Specified by:
valueUnboundin interfacejakarta.servlet.http.HttpSessionBindingListener
-
startRunInSeparateThread
public void startRunInSeparateThread() -
getScreenServer
-
acceptParameters
public void acceptParameters(jakarta.servlet.http.HttpServletRequest request) -
generateReport
public void generateReport(jakarta.servlet.http.HttpServletResponse response) -
getScreen
-
getTargetInstance
-
setTargetInstance
-
setHttpRequestParameters
public void setHttpRequestParameters(jakarta.servlet.http.HttpServletRequest request) -
destroy
public void destroy() -
abortServerThread
public void abortServerThread()
-