com.andreani.xtol.node
Class SessionEventHandler
java.lang.Object
|
+--com.andreani.xtol.node.SessionEventHandler
- All Implemented Interfaces:
- EventListener, HttpSessionAttributeListener, HttpSessionListener
- public class SessionEventHandler
- extends Object
- implements HttpSessionListener, HttpSessionAttributeListener
This class must be instantiated by the servlet container. To do so you can
include the following code in the deployment descriptor:
<web-app>
<display-name>MyApplication</display-name>
<listener>
<listener-class>com.andreani.xtol.node.SessionEventHandler</listener-class>
</listener>
<servlet>
<display-name>MyServlet</display-name>
...etc
</servlet>
</web-app>
The container is required to complete instantiation of the listener
classes in a web application prior to the start of execution of the first
request into the application. The container must reference each listener
instance until the last request is serviced for the web application.
- Version:
- 1.0
- Author:
- Stefano Andreani
Field Summary |
protected Category |
cat
Log handler (Log4Java) |
Constructor Summary |
SessionEventHandler()
Constructor for the SessionEventHandler object |
SessionEventHandler(ServiceRegistrar registrar)
The constructor searches SessionSpace services through the lookup service
and registers itself for notifications of new SessionSpace services. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
protected Category cat
- Log handler (Log4Java)
SessionEventHandler
public SessionEventHandler()
- Constructor for the SessionEventHandler object
SessionEventHandler
public SessionEventHandler(ServiceRegistrar registrar)
- The constructor searches SessionSpace services through the lookup service
and registers itself for notifications of new SessionSpace services.
- Parameters:
registrar
- Description of Parameter
sessionCreated
public void sessionCreated(HttpSessionEvent se)
- Description of the Method
- Specified by:
sessionCreated
in interface HttpSessionListener
- Parameters:
se
- Description of Parameter
sessionDestroyed
public void sessionDestroyed(HttpSessionEvent se)
- Specified by:
sessionDestroyed
in interface HttpSessionListener
attributeAdded
public void attributeAdded(HttpSessionBindingEvent se)
- When an attribute is added to a session this method propagates
modifications to the SessionSpaces
- Specified by:
attributeAdded
in interface HttpSessionAttributeListener
attributeRemoved
public void attributeRemoved(HttpSessionBindingEvent se)
- When an attribute is removed from a session this method propagates
modifications to the SessionSpaces
- Specified by:
attributeRemoved
in interface HttpSessionAttributeListener
attributeReplaced
public void attributeReplaced(HttpSessionBindingEvent se)
- When an attribute is replaced into a session this method propagates
modifications to the SessionSpaces
- Specified by:
attributeReplaced
in interface HttpSessionAttributeListener
Copyright © 2001 Stefano Andreani - No Rights Reserved ;-)