@WebSocket
public class JettyWebSocketHandlerAdapter
extends java.lang.Object
@WebSocket
handler that delegates events to a
reactive WebSocketHandler
and its session.Constructor and Description |
---|
JettyWebSocketHandlerAdapter(WebSocketHandler handler,
java.util.function.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,
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 message) |
public JettyWebSocketHandlerAdapter(WebSocketHandler handler, java.util.function.Function<org.eclipse.jetty.websocket.api.Session,JettyWebSocketSession> sessionFactory)
@OnWebSocketConnect public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
@OnWebSocketMessage public void onWebSocketText(java.lang.String message)
@OnWebSocketMessage public void onWebSocketBinary(byte[] message, 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)