public class WebSocketPipeline extends Object
| Constructor and Description |
|---|
WebSocketPipeline() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStreamHandler(StreamHandler handler)
Adds the stream handler.
|
protected void |
finalize() |
void |
sendDownstream(WebSocket ws,
ByteBuffer buffer,
Frame frame)
Send downstream.
|
void |
sendHandshakeDownstream(WebSocket ws,
ByteBuffer buffer)
Send handshake downstream.
|
void |
sendHandshakeUpstream(WebSocket ws,
ByteBuffer buffer)
Send handshake upstream.
|
void |
sendUpstream(WebSocket ws,
ByteBuffer buffer,
Frame frame)
Send upstream.
|
public void sendHandshakeUpstream(WebSocket ws, ByteBuffer buffer) throws WebSocketException
ws - the wsbuffer - the bufferWebSocketException - the web socket exceptionpublic void sendHandshakeDownstream(WebSocket ws, ByteBuffer buffer) throws WebSocketException
ws - the wsbuffer - the bufferWebSocketException - the web socket exceptionpublic void sendUpstream(WebSocket ws, ByteBuffer buffer, Frame frame) throws WebSocketException
ws - the wsbuffer - the bufferframe - the frameWebSocketException - the web socket exceptionpublic void sendDownstream(WebSocket ws, ByteBuffer buffer, Frame frame) throws WebSocketException
ws - the wsbuffer - the bufferframe - the frameWebSocketException - the web socket exceptionpublic void addStreamHandler(StreamHandler handler)
handler - the handlerCopyright © 2021. All rights reserved.