public class JettyWebSocketListenerAdapter extends Object implements org.eclipse.jetty.websocket.api.WebSocketListener
WebSocketHandler to the Jetty 9 WebSocketListener.| Constructor and Description |
|---|
JettyWebSocketListenerAdapter(WebSocketHandler webSocketHandler,
JettyWebSocketSessionAdapter wsSession) |
| Modifier and Type | Method and Description |
|---|---|
void |
onWebSocketBinary(byte[] payload,
int offset,
int len) |
void |
onWebSocketClose(int statusCode,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable cause) |
void |
onWebSocketText(String payload) |
public JettyWebSocketListenerAdapter(WebSocketHandler webSocketHandler, JettyWebSocketSessionAdapter wsSession)
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketText(String payload)
onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketBinary(byte[] payload,
int offset,
int len)
onWebSocketBinary in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketClose(int statusCode,
String reason)
onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketError(Throwable cause)
onWebSocketError in interface org.eclipse.jetty.websocket.api.WebSocketListener