Class JettyWebSocketHandlerAdapter

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

@WebSocket public class JettyWebSocketHandlerAdapter extends Object
Adapts WebSocketHandler to the Jetty WebSocket API.
Since:
4.0
Author:
Rossen Stoyanchev
  • Constructor Details

  • Method Details

    • onWebSocketOpen

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

      @OnWebSocketMessage public void onWebSocketText(String payload)
    • onWebSocketBinary

      @OnWebSocketMessage public void onWebSocketBinary(ByteBuffer payload, 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)