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
ConstructorsConstructorDescriptionAnonymousWebsocket(WebsocketFactory websocketFactory, SecurityManager securityManager) -
Method Summary
Methods inherited from class ch.tocco.nice2.web.core.api.websocket.SecureWebsocket
createWebSocketInstance, doCreateWebSocketInstance, onHandshake, onLogout, sendMessage, sendMessageToOrigin, sendMessageToUserMethods 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.WebSocket
getPath, webSocketClass
-
Constructor Details
-
AnonymousWebsocket
-
-
Method Details
-
allowAnonymous
protected final boolean allowAnonymous()- Specified by:
allowAnonymousin classSecureWebsocket<T extends BaseWebsocket>- Returns:
- true if unauthenticated users are supported by this web socket
-
getSecurityContext
- Overrides:
getSecurityContextin classSecureWebsocket<T extends BaseWebsocket>
-