public class PacketDumpStreamHandler extends Object implements StreamHandler
Dump mode: HS_UP : dump buffer of handshake upstream HS_DOWN: dump buffer of handshake downstream FR_UP : dump buffer of frame upstream FR_DOWN: dump buffer of frame downstream ALL : dump these streams.
| Constructor and Description |
|---|
PacketDumpStreamHandler()
Instantiates a new packet dump stream handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
nextDownstreamHandler(WebSocket ws,
ByteBuffer buffer,
Frame frame,
StreamHandlerChain chain)
Next downstream handler.
|
void |
nextHandshakeDownstreamHandler(WebSocket ws,
ByteBuffer buffer,
StreamHandlerChain chain)
Next handshake downstream handler.
|
void |
nextHandshakeUpstreamHandler(WebSocket ws,
ByteBuffer buffer,
StreamHandlerChain chain)
Next handshake upstream handler.
|
void |
nextUpstreamHandler(WebSocket ws,
ByteBuffer buffer,
Frame frame,
StreamHandlerChain chain)
Next upstream handler.
|
public PacketDumpStreamHandler()
public void nextDownstreamHandler(WebSocket ws, ByteBuffer buffer, Frame frame, StreamHandlerChain chain) throws WebSocketException
StreamHandlernextDownstreamHandler in interface StreamHandlerws - the wsbuffer - the bufferframe - the framechain - the chainWebSocketException - the web socket exceptionpublic void nextHandshakeDownstreamHandler(WebSocket ws, ByteBuffer buffer, StreamHandlerChain chain) throws WebSocketException
StreamHandlernextHandshakeDownstreamHandler in interface StreamHandlerws - the wsbuffer - the bufferchain - the chainWebSocketException - the web socket exceptionpublic void nextHandshakeUpstreamHandler(WebSocket ws, ByteBuffer buffer, StreamHandlerChain chain) throws WebSocketException
StreamHandlernextHandshakeUpstreamHandler in interface StreamHandlerws - the wsbuffer - the bufferchain - the chainWebSocketException - the web socket exceptionpublic void nextUpstreamHandler(WebSocket ws, ByteBuffer buffer, Frame frame, StreamHandlerChain chain) throws WebSocketException
StreamHandlernextUpstreamHandler in interface StreamHandlerws - the wsbuffer - the bufferframe - the framechain - the chainWebSocketException - the web socket exceptionCopyright © 2021. All rights reserved.