Record Class WsHttpSessionBindingListener
java.lang.Object
java.lang.Record
org.apache.tomcat.websocket.server.WsHttpSessionBindingListener
- All Implemented Interfaces:
HttpSessionBindingListener,Serializable,EventListener
public record WsHttpSessionBindingListener(String key)
extends Record
implements HttpSessionBindingListener, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aWsHttpSessionBindingListenerrecord 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.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.voidNotifies the object that it is being unbound from a session and identifies the session.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.servlet.http.HttpSessionBindingListener
valueBound
-
Constructor Details
-
WsHttpSessionBindingListener
Creates an instance of aWsHttpSessionBindingListenerrecord class.- Parameters:
key- the value for thekeyrecord component
-
-
Method Details
-
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:
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-