Class NotificationWebsocketDefinition
java.lang.Object
ch.tocco.nice2.web.core.api.websocket.SecureWebsocket<NotificationWebsocketDefinition.NotificationWebsocket>
ch.tocco.nice2.notificationcenter.impl.NotificationWebsocketDefinition
- All Implemented Interfaces:
WebSocket<NotificationWebsocketDefinition.NotificationWebsocket>
@Component
public class NotificationWebsocketDefinition
extends SecureWebsocket<NotificationWebsocketDefinition.NotificationWebsocket>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Fields inherited from class ch.tocco.nice2.web.core.api.websocket.SecureWebsocket
BUSINESS_UNIT_KEY, CONTEXT_KEY, ORIGIN_ID_KEY
-
Constructor Summary
ConstructorDescriptionNotificationWebsocketDefinition
(org.slf4j.Logger logger, WebsocketFactory websocketFactory) -
Method Summary
Methods inherited from class ch.tocco.nice2.web.core.api.websocket.SecureWebsocket
createWebSocketInstance, getSecurityContext, onHandshake, onLogout, sendMessage, sendMessageToOrigin, sendMessageToUser
-
Field Details
-
WEBSOCKET_PATH
- See Also:
-
-
Constructor Details
-
NotificationWebsocketDefinition
-
-
Method Details
-
webSocketClass
Description copied from interface:WebSocket
Class
of the WebSocket implementation (must extend javax.websocket.Endpoint) -
doCreateWebSocketInstance
- Specified by:
doCreateWebSocketInstance
in classSecureWebsocket<NotificationWebsocketDefinition.NotificationWebsocket>
-
allowAnonymous
protected boolean allowAnonymous()- Specified by:
allowAnonymous
in classSecureWebsocket<NotificationWebsocketDefinition.NotificationWebsocket>
- Returns:
- true if unauthenticated users are supported by this web socket
-
getPath
Description copied from interface:WebSocket
The relative path where this endpoint should be published. Should start with '/nice2/websocket/' for consistency reasons.
-