Class JettyWebSocketHandlerAdapter
java.lang.Object
org.springframework.web.reactive.socket.adapter.JettyWebSocketHandlerAdapter
Jetty
@WebSocket
handler that delegates events to a
reactive WebSocketHandler
and its session.- Since:
- 5.0
- Author:
- Violeta Georgieva, Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionJettyWebSocketHandlerAdapter
(WebSocketHandler handler, Function<org.eclipse.jetty.websocket.api.Session, JettyWebSocketSession> sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onWebSocketBinary
(ByteBuffer byteBuffer, org.eclipse.jetty.websocket.api.Callback callback) void
onWebSocketClose
(int statusCode, String reason) void
onWebSocketError
(Throwable cause) void
onWebSocketFrame
(org.eclipse.jetty.websocket.api.Frame frame, org.eclipse.jetty.websocket.api.Callback callback) void
onWebSocketOpen
(org.eclipse.jetty.websocket.api.Session session) void
onWebSocketText
(String message)
-
Constructor Details
-
JettyWebSocketHandlerAdapter
public JettyWebSocketHandlerAdapter(WebSocketHandler handler, Function<org.eclipse.jetty.websocket.api.Session, JettyWebSocketSession> sessionFactory)
-
-
Method Details
-
onWebSocketOpen
@OnWebSocketOpen public void onWebSocketOpen(org.eclipse.jetty.websocket.api.Session session) -
onWebSocketText
-
onWebSocketBinary
@OnWebSocketMessage public void onWebSocketBinary(ByteBuffer byteBuffer, org.eclipse.jetty.websocket.api.Callback callback) -
onWebSocketFrame
@OnWebSocketFrame public void onWebSocketFrame(org.eclipse.jetty.websocket.api.Frame frame, org.eclipse.jetty.websocket.api.Callback callback) -
onWebSocketClose
-
onWebSocketError
-