Package org.htmlunit.websocket
Class JettyWebSocketAdapter
java.lang.Object
org.htmlunit.websocket.JettyWebSocketAdapter
- All Implemented Interfaces:
WebSocketAdapter
Jetty based impl of the WebSocketAdapter.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.jetty.websocket.client.WebSocketClient
private final Object
private org.eclipse.jetty.websocket.api.Session
private org.eclipse.jetty.websocket.api.Session
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.htmlunit.websocket.WebSocketAdapter
onWebSocketBinary, onWebSocketClose, onWebSocketConnect, onWebSocketConnectError, onWebSocketConnecting, onWebSocketError, onWebSocketText
-
Field Details
-
clientLock_
-
client_
private org.eclipse.jetty.websocket.client.WebSocketClient client_ -
incomingSession_
private volatile org.eclipse.jetty.websocket.api.Session incomingSession_ -
outgoingSession_
private org.eclipse.jetty.websocket.api.Session outgoingSession_
-
-
Constructor Details
-
JettyWebSocketAdapter
-
-
Method Details
-
start
- Specified by:
start
in interfaceWebSocketAdapter
- Throws:
Exception
-
connect
- Specified by:
connect
in interfaceWebSocketAdapter
- Throws:
Exception
-
send
- Specified by:
send
in interfaceWebSocketAdapter
- Throws:
IOException
-
closeIncommingSession
public void closeIncommingSession()- Specified by:
closeIncommingSession
in interfaceWebSocketAdapter
-
closeOutgoingSession
public void closeOutgoingSession()- Specified by:
closeOutgoingSession
in interfaceWebSocketAdapter
-
closeClient
- Specified by:
closeClient
in interfaceWebSocketAdapter
- Throws:
Exception
-