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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmessageReceived(BaseWebsocket websocket, SecurityContext securityContext) Called when a message has been received from the client.booleanmessageSent(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, waitMethods inherited from interface ch.tocco.nice2.web.core.api.websocket.BaseWebsocketListener
connectionClosed, connectionOpened
-
Constructor Details
-
SessionWebsocketListener
-
-
Method Details
-
messageReceived
Description copied from interface:BaseWebsocketListenerCalled when a message has been received from the client.- Specified by:
messageReceivedin interfaceBaseWebsocketListener- Returns:
- true if the message should be processed; false if the message should be ignored
-
messageSent
Description copied from interface:BaseWebsocketListenerCalled before the server send a message to the client.- Specified by:
messageSentin interfaceBaseWebsocketListener- Returns:
- true if the message should be sent; false if the message should be ignored
-