public final class JettyWebSocketAdapter extends Object implements WebSocketAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
JettyWebSocketAdapter.JettyWebSocketAdapterFactory
|
| Constructor and Description |
|---|
JettyWebSocketAdapter(WebClient webClient,
WebSocketListener listener)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeClient()
Close the client.
|
void |
closeIncommingSession()
Close the incomming session.
|
void |
closeOutgoingSession()
Close the outgoing session.
|
void |
connect(URI url)
Connects to the given
URI. |
void |
send(Object content)
Sends the provided content.
|
void |
start()
Starts the client.
|
public JettyWebSocketAdapter(WebClient webClient, WebSocketListener listener)
webClient - the WebClientlistener - the WebSocketListenerpublic void start()
throws Exception
start in interface WebSocketAdapterException - in case of errorpublic void connect(URI url) throws Exception
URI.connect in interface WebSocketAdapterurl - the target urlException - in case of errorpublic void send(Object content) throws IOException
send in interface WebSocketAdaptercontent - the content to be sentIOException - in case of errorpublic void closeIncommingSession()
closeIncommingSession in interface WebSocketAdapterpublic void closeOutgoingSession()
closeOutgoingSession in interface WebSocketAdapterpublic void closeClient()
throws Exception
closeClient in interface WebSocketAdapterException - in case of errorCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.