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 SummaryNested 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 SummaryConstructors Constructor Description WebSocketClientHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long timeoutMillis, boolean useSsl)
 - 
Method SummaryAll 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.WebSocketClientProtocolHandlerbuildHandshakeException, decode, handshaker
 - 
Methods inherited from class io.netty.handler.codec.MessageToMessageDecoderacceptInboundMessage, channelRead, channelReadComplete
 - 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged
 - 
Methods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerRemoved, isSharable
 
- 
 
- 
- 
- 
Method Detail- 
handshakeFuturepublic io.netty.channel.ChannelFuture handshakeFuture() 
 - 
handlerAddedpublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
- handlerAddedin interface- io.netty.channel.ChannelHandler
- Overrides:
- handlerAddedin class- io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler
 
 - 
exceptionCaughtpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception- Specified by:
- exceptionCaughtin interface- io.netty.channel.ChannelHandler
- Specified by:
- exceptionCaughtin interface- io.netty.channel.ChannelInboundHandler
- Throws:
- Exception
 
 - 
channelInactivepublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
- channelInactivein interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelInactivein class- io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 - 
userEventTriggeredpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object event) throws Exception- Specified by:
- userEventTriggeredin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- userEventTriggeredin class- io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 - 
closepublic void close(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1) throws Exception- Specified by:
- closein interface- io.netty.channel.ChannelOutboundHandler
- Throws:
- Exception
 
 - 
writepublic void write(io.netty.channel.ChannelHandlerContext arg0, Object arg1, io.netty.channel.ChannelPromise arg2) throws Exception- Specified by:
- writein interface- io.netty.channel.ChannelOutboundHandler
- Throws:
- Exception
 
 - 
bindpublic void bind(io.netty.channel.ChannelHandlerContext arg0, SocketAddress arg1, io.netty.channel.ChannelPromise arg2) throws Exception- Specified by:
- bindin interface- io.netty.channel.ChannelOutboundHandler
- Throws:
- Exception
 
 - 
connectpublic void connect(io.netty.channel.ChannelHandlerContext arg0, SocketAddress arg1, SocketAddress arg2, io.netty.channel.ChannelPromise arg3) throws Exception- Specified by:
- connectin interface- io.netty.channel.ChannelOutboundHandler
- Throws:
- Exception
 
 - 
disconnectpublic void disconnect(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1) throws Exception- Specified by:
- disconnectin interface- io.netty.channel.ChannelOutboundHandler
- Throws:
- Exception
 
 - 
deregisterpublic void deregister(io.netty.channel.ChannelHandlerContext arg0, io.netty.channel.ChannelPromise arg1) throws Exception- Specified by:
- deregisterin interface- io.netty.channel.ChannelOutboundHandler
- Throws:
- Exception
 
 - 
readpublic void read(io.netty.channel.ChannelHandlerContext arg0) throws Exception- Specified by:
- readin interface- io.netty.channel.ChannelOutboundHandler
- Throws:
- Exception
 
 
- 
 
-