@Deprecated
public class WsOutbound
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE
Deprecated.
|
| Constructor and Description |
|---|
WsOutbound(UpgradeOutbound upgradeOutbound,
StreamInbound streamInbound)
Deprecated.
|
WsOutbound(UpgradeOutbound upgradeOutbound,
StreamInbound streamInbound,
int byteBufferSize,
int charBufferSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(int status,
java.nio.ByteBuffer data)
Deprecated.
Send a close message to the client
|
protected void |
close(WsFrame frame)
Deprecated.
Respond to a client close by sending a close that echoes the status code
and message.
|
void |
flush()
Deprecated.
Flush any message (binary or textual) that may be buffered.
|
void |
ping(java.nio.ByteBuffer data)
Deprecated.
Send a ping message to the client
|
void |
pong(java.nio.ByteBuffer data)
Deprecated.
Send a pong message to the client
|
void |
writeBinaryData(int b)
Deprecated.
Adds the data to the buffer for binary data.
|
void |
writeBinaryMessage(java.nio.ByteBuffer msgBb)
Deprecated.
Flush any message (binary or textual) that may be buffered and then send
a WebSocket binary message as a single frame with the provided buffer as
the payload of the message.
|
void |
writeTextData(char c)
Deprecated.
Adds the data to the buffer for textual data.
|
void |
writeTextMessage(java.nio.CharBuffer msgCb)
Deprecated.
Flush any message (binary or textual) that may be buffered and then send
a WebSocket text message as a single frame with the provided buffer as
the payload of the message.
|
public static final int DEFAULT_BUFFER_SIZE
public WsOutbound(UpgradeOutbound upgradeOutbound, StreamInbound streamInbound)
public WsOutbound(UpgradeOutbound upgradeOutbound, StreamInbound streamInbound, int byteBufferSize, int charBufferSize)
public void writeBinaryData(int b)
throws java.io.IOException
b - The byte (only the least significant byte is used) of data to
send to the client.java.io.IOException - If a flush is required and an error occurs writing
the WebSocket frame to the clientpublic void writeTextData(char c)
throws java.io.IOException
c - The character to send to the client.java.io.IOException - If a flush is required and an error occurs writing
the WebSocket frame to the clientpublic void writeBinaryMessage(java.nio.ByteBuffer msgBb)
throws java.io.IOException
msgBb - The buffer containing the payloadjava.io.IOException - If an error occurs writing to the clientpublic void writeTextMessage(java.nio.CharBuffer msgCb)
throws java.io.IOException
msgCb - The buffer containing the payloadjava.io.IOException - If an error occurs writing to the clientpublic void flush()
throws java.io.IOException
java.io.IOException - If an error occurs writing to the clientprotected void close(WsFrame frame) throws java.io.IOException
frame - The close frame received from a clientjava.io.IOException - If an error occurs writing to the clientpublic void close(int status,
java.nio.ByteBuffer data)
throws java.io.IOException
status - Must be a valid status code or zero to send no codedata - Optional message. If message is defined, a valid status
code must be provided.java.io.IOException - If an error occurs writing to the clientpublic void pong(java.nio.ByteBuffer data)
throws java.io.IOException
data - Optional message.java.io.IOException - If an error occurs writing to the clientpublic void ping(java.nio.ByteBuffer data)
throws java.io.IOException
data - Optional message.java.io.IOException - If an error occurs writing to the clientCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.