WebSocketServerProtocolHandler.
| Modifier and Type | Field and Description |
|---|---|
| private Promise | |
| 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 default io. Channel has read a message from the peer.
|
| private static boolean | |
| private static String | |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides default io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| private boolean | |
| private static void |
| handshakePromise | back to summary |
|---|---|
| private Promise<Void> 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(ChannelHandlerContext ctx) | |
| channelRead | back to summary |
|---|---|
| public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception Overrides default io. Doc from io. Invoked when the current
| |
| checkNextUri | back to summary |
|---|---|
| private static 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 default 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) | |