| Modifier and Type | Field and Description |
|---|---|
| private Promise | |
| private final WebSocketCloseStatus | |
| private final boolean | |
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebSocketProtocolHandler()
Creates a new |
| pack-priv | WebSocketProtocolHandler(boolean
true if PongWebSocketFrames should be droppedCreates a new |
| pack-priv | WebSocketProtocolHandler(boolean dropPongFrames, WebSocketCloseStatus closeStatus, long forceCloseTimeoutMillis)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected WebSocketHandshakeException | buildHandshakeException(String message)
Returns a |
| public void | channelExceptionCaught(ChannelHandlerContext ctx, Throwable cause)
Overrides default io. Throwable was thrown when handling inbound events.
|
| public Future | close(final ChannelHandlerContext
the ctx)ChannelHandlerContext for which the close operation is madeOverrides default io. |
| pack-priv void | |
| protected void | decode(ChannelHandlerContext
the ctx, WebSocketFrame ChannelHandlerContext which this MessageToMessageDecoder belongs tothe message to decode to another one msg)Overrides io. |
| protected void | decodeAndClose(ChannelHandlerContext
the ctx, WebSocketFrame ChannelHandlerContext which this MessageToMessageDecoder belongs tothe message to decode to another one frame)Overrides io. |
| private static void | |
| public Future | write(final ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the write operation is madethe message to write msg)Overrides default io. |
| closeSent | back to summary |
|---|---|
| private Promise<Void> closeSent | |
| closeStatus | back to summary |
|---|---|
| private final WebSocketCloseStatus closeStatus | |
| dropPongFrames | back to summary |
|---|---|
| private final boolean dropPongFrames | |
| forceCloseTimeoutMillis | back to summary |
|---|---|
| private final long forceCloseTimeoutMillis | |
| WebSocketProtocolHandler | back to summary |
|---|---|
| pack-priv WebSocketProtocolHandler() Creates a new | |
| WebSocketProtocolHandler | back to summary |
|---|---|
| pack-priv WebSocketProtocolHandler(boolean dropPongFrames) Creates a new
| |
| WebSocketProtocolHandler | back to summary |
|---|---|
| pack-priv WebSocketProtocolHandler(boolean dropPongFrames, WebSocketCloseStatus closeStatus, long forceCloseTimeoutMillis) | |
| applyCloseSentTimeout | back to summary |
|---|---|
| private void applyCloseSentTimeout(ChannelHandlerContext ctx) | |
| buildHandshakeException | back to summary |
|---|---|
| protected WebSocketHandshakeException buildHandshakeException(String message) Returns a | |
| channelExceptionCaught | back to summary |
|---|---|
| public void channelExceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception Overrides default io. Doc from io. Gets called if a
| |
| close | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a close operation is made.
| |
| closeSent | back to summary |
|---|---|
| pack-priv void closeSent(Promise<Void> promise) | |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, WebSocketFrame msg) throws Exception Overrides io. Doc from io. Decode from one message to another. This method will be called for each written message that can be handled by this decoder. The message will be disposed of after this call.
Subclasses that wish to sometimes pass messages through, should instead override the
| |
| decodeAndClose | back to summary |
|---|---|
| protected void decodeAndClose(ChannelHandlerContext ctx, WebSocketFrame frame) throws Exception Overrides io. Doc from io. Decode from one message to another. This method will be called for each written message that can be handled by this decoder. The message will not be automatically disposed of after this call. Instead, the responsibility of ensuring that messages are disposed of falls upon the implementor of this method.
Subclasses that wish to have incoming messages automatically disposed of should instead override the
| |
| readIfNeeded | back to summary |
|---|---|
| private static void readIfNeeded(ChannelHandlerContext ctx) | |
| write | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a write operation is made. The write operation will write the messages through the
| |