Class AbstractWebsocketDefinition<T extends BaseWebsocket>
java.lang.Object
ch.tocco.nice2.web.core.api.websocket.SecureWebsocket<T>
ch.tocco.nice2.web.core.api.websocket.AnonymousWebsocket<T>
ch.tocco.nice2.devcon.impl.socket.AbstractWebsocketDefinition<T>
- All Implemented Interfaces:
WebSocket<T>
- Direct Known Subclasses:
LoggingWebsocketDefinition
,ModelValidationWebsocketDefinition
,SqlLoggingWebsocketDefinition
public abstract class AbstractWebsocketDefinition<T extends BaseWebsocket>
extends AnonymousWebsocket<T>
-
Field Summary
Fields inherited from class ch.tocco.nice2.web.core.api.websocket.SecureWebsocket
BUSINESS_UNIT_KEY, CONTEXT_KEY, ORIGIN_ID_KEY
-
Constructor Summary
ConstructorDescriptionAbstractWebsocketDefinition
(WebsocketFactory websocketFactory, SecurityManager securityManager) -
Method Summary
Methods inherited from class ch.tocco.nice2.web.core.api.websocket.AnonymousWebsocket
allowAnonymous, getSecurityContext
Methods inherited from class ch.tocco.nice2.web.core.api.websocket.SecureWebsocket
createWebSocketInstance, onHandshake, onLogout, sendMessage, sendMessageToOrigin, sendMessageToUser
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.WebSocket
webSocketClass
-
Field Details
-
WEBSOCKET_BASE_PATH
- See Also:
-
-
Constructor Details
-
AbstractWebsocketDefinition
public AbstractWebsocketDefinition(WebsocketFactory websocketFactory, SecurityManager securityManager)
-
-
Method Details
-
doCreateWebSocketInstance
- Specified by:
doCreateWebSocketInstance
in classSecureWebsocket<T extends BaseWebsocket>
-
doCreateWebSocketInstance
-
getName
-
getPath
Description copied from interface:WebSocket
The relative path where this endpoint should be published. Should start with '/nice2/websocket/' for consistency reasons.
-