public class WebSocketPipeline extends Object
| 构造器和说明 |
|---|
WebSocketPipeline() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2020. All rights reserved.