public class JettyWebSocketHandlerAdapter
extends java.lang.Object
WebSocketHandler
to the Jetty 9 WebSocket API.Modifier and Type | Field and Description |
---|---|
private static java.nio.ByteBuffer |
EMPTY_PAYLOAD |
private static Log |
logger |
private WebSocketHandler |
webSocketHandler |
private JettyWebSocketSession |
wsSession |
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(Session session) |
void |
onWebSocketError(java.lang.Throwable cause) |
void |
onWebSocketFrame(Frame frame) |
void |
onWebSocketText(java.lang.String payload) |
private static final java.nio.ByteBuffer EMPTY_PAYLOAD
private static final Log logger
private final WebSocketHandler webSocketHandler
private final JettyWebSocketSession wsSession
public JettyWebSocketHandlerAdapter(WebSocketHandler webSocketHandler, JettyWebSocketSession wsSession)
public void onWebSocketConnect(Session session)
public void onWebSocketText(java.lang.String payload)
public void onWebSocketBinary(byte[] payload, int offset, int length)
public void onWebSocketFrame(Frame frame)
public void onWebSocketClose(int statusCode, java.lang.String reason)
public void onWebSocketError(java.lang.Throwable cause)