@WebSocket public class JettyWebSocketHandlerAdapter extends 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,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable cause) |
void |
onWebSocketFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame) |
void |
onWebSocketText(String payload) |
public JettyWebSocketHandlerAdapter(WebSocketHandler webSocketHandler, JettyWebSocketSession wsSession)
@OnWebSocketConnect public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
@OnWebSocketMessage public void onWebSocketText(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, String reason)
@OnWebSocketError public void onWebSocketError(Throwable cause)