Class JettyWebSocketHandlerAdapter

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

public class JettyWebSocketHandlerAdapter extends Object implements org.eclipse.jetty.websocket.api.Session.Listener
Adapts WebSocketHandler to the Jetty WebSocket API Session.Listener.
Since:
4.0
Author:
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 payload)
      Specified by:
      onWebSocketText in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketBinary

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