Class WebSocketClientHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.websocketx.WebSocketFrame>
-
- io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler
-
- org.apache.tinkerpop.gremlin.driver.handler.WebSocketClientHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
public final class WebSocketClientHandler extends io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandlerWrapper overWebSocketClientProtocolHandler. This wrapper provides a future which represents the termination of a WS handshake (both success and failure).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebSocketClientHandler.InterceptedWebSocketClientHandshaker13Extension to the Netty implementation that allows for theWebSocketClientHandler.InterceptedWebSocketClientHandshaker13.newHandshakeRequest()to be modified by way of aHandshakeInterceptorthat is supplied to theClusterwhen it is created.
-
Constructor Summary
Constructors Constructor Description WebSocketClientHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long timeoutMillis, boolean useSsl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(io.netty.channel.ChannelHandlerContext arg0, SocketAddress arg1, io.netty.channel.ChannelPromise arg2)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)voidclose(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1)voidconnect(io.netty.channel.ChannelHandlerContext arg0, SocketAddress arg1, SocketAddress arg2, io.netty.channel.ChannelPromise arg3)voidderegister(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1)voiddisconnect(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)voidflush(io.netty.channel.ChannelHandlerContext arg0)voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx)io.netty.channel.ChannelFuturehandshakeFuture()voidread(io.netty.channel.ChannelHandlerContext arg0)voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object event)voidwrite(io.netty.channel.ChannelHandlerContext arg0, Object arg1, io.netty.channel.ChannelPromise arg2)-
Methods inherited from class io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler
buildHandshakeException, decode, handshaker
-
Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
handshakeFuture
public io.netty.channel.ChannelFuture handshakeFuture()
-
handlerAdded
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Throws:
Exception
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object event) throws Exception- Specified by:
userEventTriggeredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
userEventTriggeredin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
close
public void close(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1) throws Exception- Specified by:
closein interfaceio.netty.channel.ChannelOutboundHandler- Throws:
Exception
-
write
public void write(io.netty.channel.ChannelHandlerContext arg0, Object arg1, io.netty.channel.ChannelPromise arg2) throws Exception- Specified by:
writein interfaceio.netty.channel.ChannelOutboundHandler- Throws:
Exception
-
bind
public void bind(io.netty.channel.ChannelHandlerContext arg0, SocketAddress arg1, io.netty.channel.ChannelPromise arg2) throws Exception- Specified by:
bindin interfaceio.netty.channel.ChannelOutboundHandler- Throws:
Exception
-
connect
public void connect(io.netty.channel.ChannelHandlerContext arg0, SocketAddress arg1, SocketAddress arg2, io.netty.channel.ChannelPromise arg3) throws Exception- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundHandler- Throws:
Exception
-
disconnect
public void disconnect(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1) throws Exception- Specified by:
disconnectin interfaceio.netty.channel.ChannelOutboundHandler- Throws:
Exception
-
deregister
public void deregister(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1) throws Exception- Specified by:
deregisterin interfaceio.netty.channel.ChannelOutboundHandler- Throws:
Exception
-
read
public void read(io.netty.channel.ChannelHandlerContext arg0) throws Exception- Specified by:
readin interfaceio.netty.channel.ChannelOutboundHandler- Throws:
Exception
-
-