Module org.htmlunit

Class JettyWebSocketAdapter.JettyWebSocketAdapterImpl

java.lang.Object
org.htmlunit.websocket.JettyWebSocketAdapter.JettyWebSocketAdapterImpl
All Implemented Interfaces:
org.htmlunit.jetty.websocket.api.Session.Listener, org.htmlunit.jetty.websocket.api.Session.Listener.AutoDemanding
Enclosing class:
JettyWebSocketAdapter

public class JettyWebSocketAdapter.JettyWebSocketAdapterImpl extends Object implements org.htmlunit.jetty.websocket.api.Session.Listener.AutoDemanding
Jetty12 based implementation of the WebSocket listener. Bridges Jetty12 Session.Listener.AutoDemanding callbacks to the HtmlUnit WebSocketListener interface.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.htmlunit.jetty.websocket.api.Session.Listener

    org.htmlunit.jetty.websocket.api.Session.Listener.Abstract, org.htmlunit.jetty.websocket.api.Session.Listener.AbstractAutoDemanding, org.htmlunit.jetty.websocket.api.Session.Listener.AutoDemanding
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onWebSocketBinary(ByteBuffer payload, org.htmlunit.jetty.websocket.api.Callback callback)
     
    void
    onWebSocketClose(int statusCode, String reason, org.htmlunit.jetty.websocket.api.Callback callback)
     
    void
     
    void
    onWebSocketOpen(org.htmlunit.jetty.websocket.api.Session session)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.htmlunit.jetty.websocket.api.Session.Listener

    onWebSocketClose, onWebSocketFrame, onWebSocketPartialBinary, onWebSocketPartialText, onWebSocketPing, onWebSocketPong
  • Method Details

    • onWebSocketOpen

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

      public void onWebSocketClose(int statusCode, String reason, org.htmlunit.jetty.websocket.api.Callback callback)
      Specified by:
      onWebSocketClose in interface org.htmlunit.jetty.websocket.api.Session.Listener
    • onWebSocketText

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

      public void onWebSocketBinary(ByteBuffer payload, org.htmlunit.jetty.websocket.api.Callback callback)
      Specified by:
      onWebSocketBinary in interface org.htmlunit.jetty.websocket.api.Session.Listener
    • onWebSocketError

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