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 SummaryConstructorsConstructorDescriptionWsSessionListener(WsServerContainer wsServerContainer) Creates an instance of aWsSessionListenerrecord class.
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.servlet.http.HttpSessionListenersessionCreated
- 
Constructor Details- 
WsSessionListenerCreates an instance of aWsSessionListenerrecord class.- Parameters:
- wsServerContainer- the value for the- wsServerContainerrecord component
 
 
- 
- 
Method Details- 
sessionDestroyedDescription 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 interface- HttpSessionListener
- Parameters:
- se- the notification event
 
- 
toString
- 
hashCode
- 
equalsIndicates 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).
- 
wsServerContainerReturns the value of thewsServerContainerrecord component.- Returns:
- the value of the wsServerContainerrecord component
 
 
-