Top Description Methods
jakarta.servlet.http

public Interface HttpSessionActivationListener

extends EventListener
Imports
java.util.EventListener

Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated. A container that migrates session between VMs or persists sessions is required to notify all attributes bound to sessions implementing HttpSessionActivationListener.
Since
Servlet 2.3

Method Summary

Modifier and TypeMethod and Description
public default void
sessionDidActivate(HttpSessionEvent
the HttpSessionEvent indicating the activation of the session
se
)

Notification that the session has just been activated.

public default void
sessionWillPassivate(HttpSessionEvent
the HttpSessionEvent indicating the passivation of the session
se
)

Notification that the session is about to be passivated.

Method Detail

sessionDidActivateback to summary
public default void sessionDidActivate(HttpSessionEvent se)

Notification that the session has just been activated.

Implementation Specification

The default implementation takes no action.

Parameters
se:HttpSessionEvent

the HttpSessionEvent indicating the activation of the session

sessionWillPassivateback to summary
public default void sessionWillPassivate(HttpSessionEvent se)

Notification that the session is about to be passivated.

Implementation Specification

The default implementation takes no action.

Parameters
se:HttpSessionEvent

the HttpSessionEvent indicating the passivation of the session