Class SubscriptionsWebSocketEndpoint
- java.lang.Object
-
- jetbrains.buildServer.push.impl.jsr356.SubscriptionsWebSocketEndpoint
-
- All Implemented Interfaces:
WebSocketSession
public class SubscriptionsWebSocketEndpoint extends Object implements WebSocketSession
Endpoint instance is created per WebSocket connection SeeWebSocketHandshakeValidationFilter.WebSocketEndpointConfigurator
-
-
Constructor Summary
Constructors Constructor Description SubscriptionsWebSocketEndpoint(DefaultTopicsRegistry topicsRegistry, WebSocketFeature webSocketFeature, WebSocketBroadcaster webSocketBroadcaster, SecurityContextEx securityContext, ActiveWebSocketSessions activeWebSocketSessions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close(String reason)
String
getHttpSessionId()
void
onClose(javax.websocket.CloseReason closeReason)
void
onError(Throwable e)
void
onMessage(String message)
void
onOpen(javax.websocket.Session session)
-
-
-
Constructor Detail
-
SubscriptionsWebSocketEndpoint
public SubscriptionsWebSocketEndpoint(DefaultTopicsRegistry topicsRegistry, WebSocketFeature webSocketFeature, WebSocketBroadcaster webSocketBroadcaster, SecurityContextEx securityContext, ActiveWebSocketSessions activeWebSocketSessions)
-
-
Method Detail
-
onOpen
public void onOpen(javax.websocket.Session session)
-
onMessage
public void onMessage(String message)
-
onClose
public void onClose(javax.websocket.CloseReason closeReason)
-
onError
public void onError(Throwable e)
-
getHttpSessionId
@NotNull public String getHttpSessionId()
- Specified by:
getHttpSessionId
in interfaceWebSocketSession
-
close
public void close(@NotNull String reason)
- Specified by:
close
in interfaceWebSocketSession
-
-