Class JettyWebSocketTransport.JettyWebSocketDelegate

java.lang.Object
org.cometd.client.websocket.common.AbstractWebSocketTransport.Delegate
org.cometd.client.websocket.jetty.JettyWebSocketTransport.JettyWebSocketDelegate
All Implemented Interfaces:
org.eclipse.jetty.websocket.api.Session.Listener, org.eclipse.jetty.websocket.api.Session.Listener.AutoDemanding
Enclosing class:
JettyWebSocketTransport

public class JettyWebSocketTransport.JettyWebSocketDelegate extends AbstractWebSocketTransport.Delegate implements org.eclipse.jetty.websocket.api.Session.Listener.AutoDemanding
  • Constructor Details

    • JettyWebSocketDelegate

      public JettyWebSocketDelegate()
  • 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 closeCode, 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

      public void send(String content)
      Specified by:
      send in class AbstractWebSocketTransport.Delegate
    • shutdown

      protected void shutdown(String reason)
      Specified by:
      shutdown in class AbstractWebSocketTransport.Delegate
    • isOpen

      protected boolean isOpen()
      Overrides:
      isOpen in class AbstractWebSocketTransport.Delegate
    • close

      protected void close()
      Specified by:
      close in class AbstractWebSocketTransport.Delegate