Class WsHttpSessionBindingListener
java.lang.Object
org.apache.tomcat.websocket.server.WsHttpSessionBindingListener
- All Implemented Interfaces:
HttpSessionBindingListener, Serializable, EventListener
public class WsHttpSessionBindingListener
extends Object
implements HttpSessionBindingListener, Serializable
Listener used to track when an HTTP session expires and notifies the WebSocket container so any associated WebSocket
session can be closed.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()voidNotifies the object that it is being unbound from a session and identifies the session.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpSessionBindingListener
valueBound
-
Constructor Details
-
WsHttpSessionBindingListener
Create a new listener.- Parameters:
key- The key that identifies the HTTP session
-
-
Method Details
-
getKey
-
valueUnbound
Description copied from interface:jakarta.servlet.http.HttpSessionBindingListenerNotifies the object that it is being unbound from a session and identifies the session. The default implementation is a NO-OP.- Specified by:
valueUnboundin interfaceHttpSessionBindingListener- Parameters:
event- the event that identifies the session- See Also:
-