Top Description Methods
jakarta.servlet.http

public Interface HttpSessionAttributeListener

extends EventListener
Imports
java.util.EventListener

This listener interface can be implemented in order to get notifications of changes to the attribute lists of sessions within this web application.
Since
Servlet 2.3

Method Summary

Modifier and TypeMethod and Description
public default void
attributeAdded(HttpSessionBindingEvent
Information about the added attribute
se
)

Notification that an attribute has been added to a session.

public default void
attributeRemoved(HttpSessionBindingEvent
Information about the removed attribute
se
)

Notification that an attribute has been removed from a session.

public default void
attributeReplaced(HttpSessionBindingEvent
Information about the replaced attribute
se
)

Notification that an attribute has been replaced in a session.

Method Detail

attributeAddedback to summary
public default void attributeAdded(HttpSessionBindingEvent se)

Notification that an attribute has been added to a session. Called after the attribute is added. The default implementation is a NO-OP.

Parameters
se:HttpSessionBindingEvent

Information about the added attribute

attributeRemovedback to summary
public default void attributeRemoved(HttpSessionBindingEvent se)

Notification that an attribute has been removed from a session. Called after the attribute is removed. The default implementation is a NO-OP.

Parameters
se:HttpSessionBindingEvent

Information about the removed attribute

attributeReplacedback to summary
public default void attributeReplaced(HttpSessionBindingEvent se)

Notification that an attribute has been replaced in a session. Called after the attribute is replaced. The default implementation is a NO-OP.

Parameters
se:HttpSessionBindingEvent

Information about the replaced attribute