Class WebSocketRegistryListener
java.lang.Object
org.springframework.session.web.socket.handler.WebSocketRegistryListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public final class WebSocketRegistryListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
Keeps track of mapping the Spring Session ID to the WebSocketSession
and
ensuring when a SessionDestroyedEvent
is fired that the
WebSocketSession
is closed.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.springframework.context.ApplicationEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
WebSocketRegistryListener
public WebSocketRegistryListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-