Record Class WsSessionListener
java.lang.Object
java.lang.Record
org.apache.tomcat.websocket.server.WsSessionListener
- All Implemented Interfaces:
HttpSessionListener,EventListener
public record WsSessionListener(WsServerContainer wsServerContainer)
extends Record
implements HttpSessionListener
-
Constructor Summary
ConstructorsConstructorDescriptionWsSessionListener(WsServerContainer wsServerContainer) Creates an instance of aWsSessionListenerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidNotification that a session is about to be invalidated.final StringtoString()Returns a string representation of this record class.Returns the value of thewsServerContainerrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.servlet.http.HttpSessionListener
sessionCreated
-
Constructor Details
-
WsSessionListener
Creates an instance of aWsSessionListenerrecord class.- Parameters:
wsServerContainer- the value for thewsServerContainerrecord component
-
-
Method Details
-
sessionDestroyed
Description copied from interface:jakarta.servlet.http.HttpSessionListenerNotification that a session is about to be invalidated. The default implementation is a NO-OP.- Specified by:
sessionDestroyedin interfaceHttpSessionListener- Parameters:
se- the notification event
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
wsServerContainer
Returns the value of thewsServerContainerrecord component.- Returns:
- the value of the
wsServerContainerrecord component
-