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.InterceptedWebSocketClientHandshaker13
Extension to the Netty implementation that allows for the
WebSocketClientHandler.InterceptedWebSocketClientHandshaker13.newHandshakeRequest() to be modified by way
of a HandshakeInterceptor that is supplied to the Cluster when it is created. |
Constructor and Description |
---|
WebSocketClientHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker,
long timeoutMillis,
boolean useSsl) |
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, handshaker
acceptInboundMessage, channelRead
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
ensureNotSharable, handlerRemoved, isSharable
public WebSocketClientHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long timeoutMillis, boolean useSsl)
public io.netty.channel.ChannelFuture handshakeFuture()
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded
in interface io.netty.channel.ChannelHandler
handlerAdded
in class io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object event) throws Exception
userEventTriggered
in interface io.netty.channel.ChannelInboundHandler
userEventTriggered
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.