Class SessionWebsocketListener
java.lang.Object
ch.tocco.nice2.usermanager.impl.websocket.SessionWebsocketListener
- All Implemented Interfaces:
BaseWebsocketListener
Closes the web socket
Session
if the session that is associated
with the given SecurityContext
is no longer active.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
messageReceived
(BaseWebsocket websocket, SecurityContext securityContext) Called when a message has been received from the client.boolean
messageSent
(BaseWebsocket websocket, SecurityContext securityContext) Called before the server send a message to the client.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.web.core.api.websocket.BaseWebsocketListener
connectionClosed, connectionOpened
-
Constructor Details
-
SessionWebsocketListener
-
-
Method Details
-
messageReceived
Description copied from interface:BaseWebsocketListener
Called when a message has been received from the client.- Specified by:
messageReceived
in interfaceBaseWebsocketListener
- Returns:
- true if the message should be processed; false if the message should be ignored
-
messageSent
Description copied from interface:BaseWebsocketListener
Called before the server send a message to the client.- Specified by:
messageSent
in interfaceBaseWebsocketListener
- Returns:
- true if the message should be sent; false if the message should be ignored
-