Package jakarta.servlet.http
Interface HttpSessionBindingListener
-
- All Superinterfaces:
EventListener
public interface HttpSessionBindingListener extends EventListener
Causes an object to be notified when it is bound to or unbound from a session. The object is notified by anHttpSessionBindingEvent
object. This may be as a result of a servlet programmer explicitly unbinding an attribute from a session, due to a session being invalidated, or due to a session timing out.- Author:
- Various
- See Also:
HttpSession
,HttpSessionBindingEvent
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
valueBound(HttpSessionBindingEvent event)
Notifies the object that it is being bound to a session and identifies the session.default void
valueUnbound(HttpSessionBindingEvent event)
Notifies the object that it is being unbound from a session and identifies the session.
-
-
-
Method Detail
-
valueBound
default void valueBound(HttpSessionBindingEvent event)
Notifies the object that it is being bound to a session and identifies the session.- Parameters:
event
- the event that identifies the session- See Also:
valueUnbound(jakarta.servlet.http.HttpSessionBindingEvent)
-
valueUnbound
default void valueUnbound(HttpSessionBindingEvent event)
Notifies the object that it is being unbound from a session and identifies the session.- Parameters:
event
- the event that identifies the session- See Also:
valueBound(jakarta.servlet.http.HttpSessionBindingEvent)
-
-