public final class WebSocketClientHandler
extends io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler
WebSocketClientProtocolHandler. This wrapper provides a future which represents the termination
 of a WS handshake (both success and failure).| Modifier and Type | Class and Description | 
|---|---|
| static class  | WebSocketClientHandler.InterceptedWebSocketClientHandshaker13Extension to the Netty implementation that allows for the  WebSocketClientHandler.InterceptedWebSocketClientHandshaker13.newHandshakeRequest()to be modified by way
 of aHandshakeInterceptorthat is supplied to theClusterwhen it is created. | 
| Constructor and Description | 
|---|
| WebSocketClientHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker,
                      long timeoutMillis) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | channelInactive(io.netty.channel.ChannelHandlerContext ctx) | 
| void | exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
               Throwable cause) | 
| void | handlerAdded(io.netty.channel.ChannelHandlerContext ctx) | 
| io.netty.channel.ChannelFuture | handshakeFuture() | 
| void | userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
                  Object event) | 
buildHandshakeException, decode, handshakeracceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerRemoved, isSharablepublic WebSocketClientHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker,
                              long timeoutMillis)
public io.netty.channel.ChannelFuture handshakeFuture()
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandlerpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
                            Throwable cause)
                     throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandlerExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
                     throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
                               Object event)
                        throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2013–2022 Apache Software Foundation. All rights reserved.