@WebSocket
public class JettyWebSocketHandlerAdapter
extends java.lang.Object
WebSocketHandler
to the Jetty 9 WebSocket API.Constructor and Description |
---|
JettyWebSocketHandlerAdapter(WebSocketHandler webSocketHandler,
JettyWebSocketSession wsSession) |
Modifier and Type | Method and Description |
---|---|
void |
onWebSocketBinary(byte[] payload,
int offset,
int length) |
void |
onWebSocketClose(int statusCode,
java.lang.String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(java.lang.Throwable cause) |
void |
onWebSocketFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame) |
void |
onWebSocketText(java.lang.String payload) |
public JettyWebSocketHandlerAdapter(WebSocketHandler webSocketHandler, JettyWebSocketSession wsSession)
@OnWebSocketConnect public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
@OnWebSocketMessage public void onWebSocketText(java.lang.String payload)
@OnWebSocketMessage public void onWebSocketBinary(byte[] payload, int offset, int length)
@OnWebSocketFrame public void onWebSocketFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame)
@OnWebSocketClose public void onWebSocketClose(int statusCode, java.lang.String reason)
@OnWebSocketError public void onWebSocketError(java.lang.Throwable cause)