Class JettyWebSocketHandlerAdapter

java.lang.Object
org.springframework.web.reactive.socket.adapter.JettyWebSocketHandlerAdapter
All Implemented Interfaces:
org.eclipse.jetty.websocket.api.Session.Listener

public class JettyWebSocketHandlerAdapter extends Object implements org.eclipse.jetty.websocket.api.Session.Listener
Jetty Session.Listener handler that delegates events to a reactive WebSocketHandler and its session.
Since:
5.0
Author:
Violeta Georgieva, Rossen Stoyanchev
  • Constructor Details

  • Method Details

    • onWebSocketOpen

      public void onWebSocketOpen(org.eclipse.jetty.websocket.api.Session session)
      Specified by:
      onWebSocketOpen in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketText

      public void onWebSocketText(String message)
      Specified by:
      onWebSocketText in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketBinary

      public void onWebSocketBinary(ByteBuffer byteBuffer, org.eclipse.jetty.websocket.api.Callback callback)
      Specified by:
      onWebSocketBinary in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketPong

      public void onWebSocketPong(ByteBuffer payload)
      Specified by:
      onWebSocketPong in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketClose

      public void onWebSocketClose(int statusCode, String reason)
      Specified by:
      onWebSocketClose in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketError

      public void onWebSocketError(Throwable cause)
      Specified by:
      onWebSocketError in interface org.eclipse.jetty.websocket.api.Session.Listener