@WebSocket public class Jetty10WebSocketHandlerAdapter extends Object
JettyWebSocketHandlerAdapter
, only excluding the
onWebSocketFrame
method, since the Frame
argument has moved
to a different package in Jetty 10.Constructor and Description |
---|
Jetty10WebSocketHandlerAdapter(WebSocketHandler handler,
Function<org.eclipse.jetty.websocket.api.Session,JettyWebSocketSession> sessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
onWebSocketBinary(byte[] message,
int offset,
int length) |
void |
onWebSocketClose(int statusCode,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable cause) |
void |
onWebSocketText(String message) |
public Jetty10WebSocketHandlerAdapter(WebSocketHandler handler, Function<org.eclipse.jetty.websocket.api.Session,JettyWebSocketSession> sessionFactory)
@OnWebSocketConnect public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
@OnWebSocketMessage public void onWebSocketText(String message)
@OnWebSocketMessage public void onWebSocketBinary(byte[] message, int offset, int length)
@OnWebSocketClose public void onWebSocketClose(int statusCode, String reason)
@OnWebSocketError public void onWebSocketError(Throwable cause)