Class AnonymousWebsocket<T extends BaseWebsocket>
java.lang.Object
ch.tocco.nice2.web.core.api.websocket.SecureWebsocket<T>
ch.tocco.nice2.web.core.api.websocket.AnonymousWebsocket<T>
- All Implemented Interfaces:
WebSocket<T>
- Direct Known Subclasses:
AbstractWebsocketDefinition
Base class for websockets which should always run with an anonymous security context
and ignore the current user.
-
Field Summary
Fields inherited from class ch.tocco.nice2.web.core.api.websocket.SecureWebsocket
BUSINESS_UNIT_KEY, CONTEXT_KEY, ORIGIN_ID_KEY
-
Constructor Summary
ConstructorDescriptionAnonymousWebsocket
(WebsocketFactory websocketFactory, SecurityManager securityManager) -
Method Summary
Methods inherited from class ch.tocco.nice2.web.core.api.websocket.SecureWebsocket
createWebSocketInstance, doCreateWebSocketInstance, 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
getPath, webSocketClass
-
Constructor Details
-
AnonymousWebsocket
-
-
Method Details
-
allowAnonymous
protected final boolean allowAnonymous()- Specified by:
allowAnonymous
in classSecureWebsocket<T extends BaseWebsocket>
- Returns:
- true if unauthenticated users are supported by this web socket
-
getSecurityContext
- Overrides:
getSecurityContext
in classSecureWebsocket<T extends BaseWebsocket>
-