Interface WebSocketAdapter

All Known Implementing Classes:
JettyWebSocketAdapter

public interface WebSocketAdapter
Helper to have no direct dependency to the WebSockt client implementation used by HtmlUnit.
  • Method Details

    • start

      void start() throws Exception
      Throws:
      Exception
    • connect

      void connect(URI url) throws Exception
      Throws:
      Exception
    • send

      void send(Object content) throws IOException
      Throws:
      IOException
    • closeIncommingSession

      void closeIncommingSession() throws Exception
      Throws:
      Exception
    • closeOutgoingSession

      void closeOutgoingSession() throws Exception
      Throws:
      Exception
    • closeClient

      void closeClient() throws Exception
      Throws:
      Exception
    • onWebSocketConnecting

      void onWebSocketConnecting()
    • onWebSocketConnect

      void onWebSocketConnect()
    • onWebSocketClose

      void onWebSocketClose(int statusCode, String reason)
    • onWebSocketText

      void onWebSocketText(String message)
    • onWebSocketBinary

      void onWebSocketBinary(byte[] data, int offset, int length)
    • onWebSocketConnectError

      void onWebSocketConnectError(Throwable cause)
    • onWebSocketError

      void onWebSocketError(Throwable cause)