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 aWsSessionListener
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.void
Notification that a session is about to be invalidated.final String
toString()
Returns a string representation of this record class.Returns the value of thewsServerContainer
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.servlet.http.HttpSessionListener
sessionCreated
-
Constructor Details
-
WsSessionListener
Creates an instance of aWsSessionListener
record class.- Parameters:
wsServerContainer
- the value for thewsServerContainer
record component
-
-
Method Details
-
sessionDestroyed
Description copied from interface:jakarta.servlet.http.HttpSessionListener
Notification that a session is about to be invalidated. The default implementation is a NO-OP.- Specified by:
sessionDestroyed
in 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 thewsServerContainer
record component.- Returns:
- the value of the
wsServerContainer
record component
-