Class JettyWebSocketEndPoint

java.lang.Object
org.cometd.server.websocket.common.AbstractWebSocketEndPoint
org.cometd.server.websocket.jetty.JettyWebSocketEndPoint
All Implemented Interfaces:
org.eclipse.jetty.websocket.api.Session.Listener
Direct Known Subclasses:
JettyWebSocketTransport.EndPoint

public class JettyWebSocketEndPoint extends AbstractWebSocketEndPoint implements org.eclipse.jetty.websocket.api.Session.Listener
  • 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 data)
      Specified by:
      onWebSocketText in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketClose

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

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

      protected void send(ServerSession session, String data, Promise<Void> promise)
      Specified by:
      send in class AbstractWebSocketEndPoint
    • close

      public void close(int code, String reason)
      Specified by:
      close in class AbstractWebSocketEndPoint
    • toString

      public String toString()
      Overrides:
      toString in class AbstractWebSocketEndPoint