Class ToccoWebsocketDefinition
java.lang.Object
ch.tocco.nice2.web.core.api.websocket.SecureWebsocket<ToccoWebsocket>
ch.tocco.nice2.web.core.impl.websocket.ToccoWebsocketDefinition
- All Implemented Interfaces:
WebSocket<ToccoWebsocket>
-
Field Summary
FieldsFields inherited from class SecureWebsocket
BUSINESS_UNIT_KEY, CONTEXT_KEY, ORIGIN_ID_KEY -
Constructor Summary
ConstructorsConstructorDescriptionToccoWebsocketDefinition(org.slf4j.Logger logger, WebsocketFactory websocketFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected ToccoWebsocketgetPath()The relative path where this endpoint should be published.Classof the WebSocket implementation (must extend javax.websocket.Endpoint)Methods inherited from class SecureWebsocket
createWebSocketInstance, getSecurityContext, onHandshake, onLogout, sendMessage, sendMessageToOrigin, sendMessageToUser
-
Field Details
-
WEBSOCKET_PATH
- See Also:
-
-
Constructor Details
-
ToccoWebsocketDefinition
-
-
Method Details
-
webSocketClass
-
doCreateWebSocketInstance
- Specified by:
doCreateWebSocketInstancein classSecureWebsocket<ToccoWebsocket>
-
allowAnonymous
protected boolean allowAnonymous()- Specified by:
allowAnonymousin classSecureWebsocket<ToccoWebsocket>- Returns:
- true if unauthenticated users are supported by this web socket
-
getPath
-