public class StreamHandlerChain extends Object
| 构造器和说明 |
|---|
StreamHandlerChain(StreamHandler streamHandler)
Instantiates a new stream handler chain.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(StreamHandlerChain next)
Adds the.
|
void |
clear()
Clear.
|
void |
nextDownstreamHandler(WebSocket ws,
ByteBuffer buffer,
Frame frame)
Next downstream handler.
|
void |
nextHandshakeDownstreamHandler(WebSocket ws,
ByteBuffer buffer)
Next handshake downstream handler.
|
void |
nextHandshakeUpstreamHandler(WebSocket ws,
ByteBuffer buffer)
Next handshake upstream handler.
|
void |
nextUpstreamHandler(WebSocket ws,
ByteBuffer buffer,
Frame frame)
Next upstream handler.
|
public StreamHandlerChain(StreamHandler streamHandler)
streamHandler - the stream handlerpublic void nextHandshakeUpstreamHandler(WebSocket ws, ByteBuffer buffer) throws WebSocketException
ws - the wsbuffer - the bufferWebSocketException - the web socket exceptionpublic void nextHandshakeDownstreamHandler(WebSocket ws, ByteBuffer buffer) throws WebSocketException
ws - the wsbuffer - the bufferWebSocketException - the web socket exceptionpublic void nextUpstreamHandler(WebSocket ws, ByteBuffer buffer, Frame frame) throws WebSocketException
ws - the wsbuffer - the bufferframe - the frameWebSocketException - the web socket exceptionpublic void nextDownstreamHandler(WebSocket ws, ByteBuffer buffer, Frame frame) throws WebSocketException
ws - the wsbuffer - the bufferframe - the frameWebSocketException - the web socket exceptionpublic void add(StreamHandlerChain next)
next - the nextpublic void clear()
Copyright © 2020. All rights reserved.