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.WebSocketConnectionListener, org.eclipse.jetty.websocket.api.WebSocketListener
Direct Known Subclasses:
JettyWebSocketTransport.EndPoint

public class JettyWebSocketEndPoint extends AbstractWebSocketEndPoint implements org.eclipse.jetty.websocket.api.WebSocketListener
  • Constructor Details

  • Method Details

    • onWebSocketConnect

      public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
      Specified by:
      onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
    • onWebSocketBinary

      public void onWebSocketBinary(byte[] payload, int offset, int len)
      Specified by:
      onWebSocketBinary in interface org.eclipse.jetty.websocket.api.WebSocketListener
    • onWebSocketText

      public void onWebSocketText(String data)
      Specified by:
      onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListener
    • onWebSocketClose

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

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

      protected void send(ServerSession session, String data, org.eclipse.jetty.util.Callback callback)
      Specified by:
      send in class AbstractWebSocketEndPoint
    • close

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