class WebSocketConnection extends Object implements org.eclipse.jetty.websocket.WebSocket, org.eclipse.jetty.websocket.WebSocket.OnTextMessage, org.eclipse.jetty.websocket.WebSocket.OnBinaryMessage
Once the actual WebSocket connection is opened or closed the WebSocketConnection is added/removed to a pool.
org.eclipse.jetty.websocket.WebSocket.Connection, org.eclipse.jetty.websocket.WebSocket.FrameConnection, org.eclipse.jetty.websocket.WebSocket.OnBinaryMessage, org.eclipse.jetty.websocket.WebSocket.OnControl, org.eclipse.jetty.websocket.WebSocket.OnFrame, org.eclipse.jetty.websocket.WebSocket.OnTextMessage
Modifier and Type | Field and Description |
---|---|
private org.eclipse.jetty.websocket.WebSocket.Connection |
connection
The underlying Jetty WebSocket connection.
|
private CoreService |
dmx |
private Logger |
logger |
(package private) String |
pluginUri |
private WebSocketConnectionPool |
pool |
(package private) String |
sessionId |
Constructor and Description |
---|
WebSocketConnection(String pluginUri,
String sessionId,
WebSocketConnectionPool pool,
CoreService dmx) |
Modifier and Type | Method and Description |
---|---|
void |
onClose(int code,
String message) |
void |
onMessage(byte[] data,
int offset,
int length) |
void |
onMessage(String message) |
void |
onOpen(org.eclipse.jetty.websocket.WebSocket.Connection connection) |
(package private) void |
sendMessage(String message) |
private org.eclipse.jetty.websocket.WebSocket.Connection connection
private WebSocketConnectionPool pool
private CoreService dmx
WebSocketConnection(String pluginUri, String sessionId, WebSocketConnectionPool pool, CoreService dmx)
public void onOpen(org.eclipse.jetty.websocket.WebSocket.Connection connection)
onOpen
in interface org.eclipse.jetty.websocket.WebSocket
public void onClose(int code, String message)
onClose
in interface org.eclipse.jetty.websocket.WebSocket
public void onMessage(String message)
onMessage
in interface org.eclipse.jetty.websocket.WebSocket.OnTextMessage
public void onMessage(byte[] data, int offset, int length)
onMessage
in interface org.eclipse.jetty.websocket.WebSocket.OnBinaryMessage
void sendMessage(String message)
Copyright © 2018. All Rights Reserved.