Module org.htmlunit
Package org.htmlunit.websocket
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 TypeMethodDescriptionvoidonWebSocketBinary(ByteBuffer payload, org.htmlunit.jetty.websocket.api.Callback callback) voidonWebSocketClose(int statusCode, String reason, org.htmlunit.jetty.websocket.api.Callback callback) voidonWebSocketError(Throwable cause) voidonWebSocketOpen(org.htmlunit.jetty.websocket.api.Session session) voidonWebSocketText(String message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
onWebSocketOpenin interfaceorg.htmlunit.jetty.websocket.api.Session.Listener
-
onWebSocketClose
public void onWebSocketClose(int statusCode, String reason, org.htmlunit.jetty.websocket.api.Callback callback) - Specified by:
onWebSocketClosein interfaceorg.htmlunit.jetty.websocket.api.Session.Listener
-
onWebSocketText
- Specified by:
onWebSocketTextin interfaceorg.htmlunit.jetty.websocket.api.Session.Listener
-
onWebSocketBinary
public void onWebSocketBinary(ByteBuffer payload, org.htmlunit.jetty.websocket.api.Callback callback) - Specified by:
onWebSocketBinaryin interfaceorg.htmlunit.jetty.websocket.api.Session.Listener
-
onWebSocketError
- Specified by:
onWebSocketErrorin interfaceorg.htmlunit.jetty.websocket.api.Session.Listener
-