@Deprecated public class WebSocketIClient extends Object
Constructor and Description |
---|
WebSocketIClient(URI uri,
ClientMessageCallback clientMessageCallback)
Deprecated.
Creates new web socket client
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Closes the connection when the server responds to the
CloseWebSocketFrame . |
void |
connect()
Deprecated.
Makes the connection attempt and notifies when the handshake process
succeeds or fail.
|
void |
ping()
Deprecated.
Writes
PingWebSocketFrame
through the ChannelPipeline and request to actual
Channel.flush() to flush all pending data to the actual transport. |
void |
writeAndFlush(Object message)
Deprecated.
Writes a Object message through the
ChannelPipeline and request to actual Channel.flush() to flush
all pending data to the actual transport. |
void |
writeAndFlush(String message)
Deprecated.
Writes a String message through the
ChannelPipeline and request to actual Channel.flush() to flush
all pending data to the actual transport. |
public WebSocketIClient(URI uri, ClientMessageCallback clientMessageCallback)
uri
- URIclientMessageCallback
- ClientMessageCallbackpublic void connect() throws InterruptedException
InterruptedException
public void writeAndFlush(String message)
ChannelPipeline
and request to actual Channel.flush()
to flush
all pending data to the actual transport.message
- a message to writepublic void writeAndFlush(Object message)
ChannelPipeline
and request to actual Channel.flush()
to flush
all pending data to the actual transport.message
- a message to writepublic void ping()
PingWebSocketFrame
through the ChannelPipeline
and request to actual
Channel.flush()
to flush all pending data to the actual transport.public void close() throws InterruptedException
CloseWebSocketFrame
.InterruptedException
Copyright © 2018 OpenDaylight. All rights reserved.