Package org.htmlunit.websocket
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 Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
onWebSocketBinary
(byte[] data, int offset, int length) void
onWebSocketClose
(int statusCode, String reason) void
void
onWebSocketConnectError
(Throwable cause) void
void
onWebSocketError
(Throwable cause) void
onWebSocketText
(String message) void
void
start()
-
Method Details
-
start
- Throws:
Exception
-
connect
- Throws:
Exception
-
send
- Throws:
IOException
-
closeIncommingSession
- Throws:
Exception
-
closeOutgoingSession
- Throws:
Exception
-
closeClient
- Throws:
Exception
-
onWebSocketConnecting
void onWebSocketConnecting() -
onWebSocketConnect
void onWebSocketConnect() -
onWebSocketClose
-
onWebSocketText
-
onWebSocketBinary
void onWebSocketBinary(byte[] data, int offset, int length) -
onWebSocketConnectError
-
onWebSocketError
-