WebSocketServerProtocolHandler.
| Modifier and Type | Field and Description |
|---|---|
| private ChannelHandlerContext | |
| private ChannelPromise | |
| private boolean | |
| private final WebSocketServerProtocolConfig |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | channelRead(final ChannelHandlerContext ctx, Object msg)
Overrides io. Implements io. ChannelHandlerContext#fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline.
|
| private boolean | |
| private static String | |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| private boolean | |
| private static void |
| ctx | back to summary |
|---|---|
| private ChannelHandlerContext ctx | |
| handshakePromise | back to summary |
|---|---|
| private ChannelPromise handshakePromise | |
| isWebSocketPath | back to summary |
|---|---|
| private boolean isWebSocketPath | |
| serverConfig | back to summary |
|---|---|
| private final WebSocketServerProtocolConfig serverConfig | |
| WebSocketServerProtocolHandshakeHandler | back to summary |
|---|---|
| pack-priv WebSocketServerProtocolHandshakeHandler(WebSocketServerProtocolConfig serverConfig) | |
| applyHandshakeTimeout | back to summary |
|---|---|
| private void applyHandshakeTimeout() | |
| channelRead | back to summary |
|---|---|
| public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception Overrides io. Implements io. Doc from io. Calls
| |
| checkNextUri | back to summary |
|---|---|
| private boolean checkNextUri(String uri, String websocketPath) | |
| getWebSocketLocation | back to summary |
|---|---|
| private static String getWebSocketLocation(ChannelPipeline cp, HttpRequest req, String path) | |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Gets called after the
| |
| isWebSocketPath | back to summary |
|---|---|
| private boolean isWebSocketPath(HttpRequest req) | |
| sendHttpResponse | back to summary |
|---|---|
| private static void sendHttpResponse(ChannelHandlerContext ctx, HttpRequest req, HttpResponse res) | |