Class JettyWebSocketHandlerAdapter

java.lang.Object
org.springframework.web.reactive.socket.adapter.JettyWebSocketHandlerAdapter

@WebSocket public class JettyWebSocketHandlerAdapter extends Object
Jetty @WebSocket handler that delegates events to a reactive WebSocketHandler and its session.
Since:
5.0
Author:
Violeta Georgieva, Rossen Stoyanchev
  • Constructor Details

  • Method Details

    • onWebSocketOpen

      @OnWebSocketOpen public void onWebSocketOpen(org.eclipse.jetty.websocket.api.Session session)
    • onWebSocketText

      @OnWebSocketMessage public void onWebSocketText(String message)
    • 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

      @OnWebSocketClose public void onWebSocketClose(int statusCode, String reason)
    • onWebSocketError

      @OnWebSocketError public void onWebSocketError(Throwable cause)