@Deprecated public class WsOutbound extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | DEFAULT_BUFFER_SIZEDeprecated.  | 
| 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,
     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(ByteBuffer data)Deprecated.  Send a ping message to the client | 
| void | pong(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(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(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 IOException
b - The byte (only the least significant byte is used) of data to
          send to the client.IOException - If a flush is required and an error occurs writing
                      the WebSocket frame to the clientpublic void writeTextData(char c)
                   throws IOException
c - The character to send to the client.IOException - If a flush is required and an error occurs writing
                      the WebSocket frame to the clientpublic void writeBinaryMessage(ByteBuffer msgBb) throws IOException
msgBb - The buffer containing the payloadIOException - If an error occurs writing to the clientpublic void writeTextMessage(CharBuffer msgCb) throws IOException
msgCb - The buffer containing the payloadIOException - If an error occurs writing to the clientpublic void flush()
           throws IOException
IOException - If an error occurs writing to the clientprotected void close(WsFrame frame) throws IOException
frame - The close frame received from a clientIOException - If an error occurs writing to the clientpublic void close(int status,
         ByteBuffer data)
           throws 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.IOException - If an error occurs writing to the clientpublic void pong(ByteBuffer data) throws IOException
data - Optional message.IOException - If an error occurs writing to the clientpublic void ping(ByteBuffer data) throws IOException
data - Optional message.IOException - If an error occurs writing to the clientCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.