Top Fields Constructors Methods
io.vertx.core.http.impl

pack-priv Class WebSocketHandshakeInboundHandler

extends ChannelInboundHandlerAdapter
Class Inheritance
Imports
io.netty.buffer.ByteBuf, io.netty.channel.*, io.netty.handler.codec.http.DefaultFullHttpResponse, .FullHttpResponse, .HttpContent, .HttpContentDecompressor, .HttpResponse, .LastHttpContent, io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker, .WebSocketHandshakeException, io.netty.util.concurrent.GenericFutureListener, io.vertx.core.AsyncResult, .Future, .Handler, io.vertx.core.buffer.Buffer, io.vertx.core.http.UpgradeRejectedException, io.vertx.core.http.impl.headers.HeadersAdaptor

Authors
Tim Fox, Julien Viet

Field Summary

Modifier and TypeField and Description
private ChannelHandlerContext
private ChannelFuture
private final WebSocketClientHandshaker
private FullHttpResponse
private final Handler<AsyncResult<HeadersAdaptor>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
handlerAdded(ChannelHandlerContext ctx)

Overrides io.netty.channel.ChannelHandlerAdapter.handlerAdded.

Implements io.netty.channel.ChannelHandler.handlerAdded.

Gets called after the ChannelHandler was added to the actual context and it's ready to handle events.

private void
Inherited from io.netty.channel.ChannelInboundHandlerAdapter:
channelActivechannelReadCompletechannelRegisteredchannelUnregisteredchannelWritabilityChangedexceptionCaughtuserEventTriggered

Field Detail

chctxback to summary
private ChannelHandlerContext chctx
futback to summary
private ChannelFuture fut
handshakerback to summary
private final WebSocketClientHandshaker handshaker
responseback to summary
private FullHttpResponse response
wsHandlerback to summary
private final Handler<AsyncResult<HeadersAdaptor>> wsHandler

Constructor Detail

WebSocketHandshakeInboundHandlerback to summary
pack-priv WebSocketHandshakeInboundHandler(WebSocketClientHandshaker handshaker, Handler<AsyncResult<HeadersAdaptor>> wsHandler)

Method Detail

channelInactiveback to summary
public void channelInactive(ChannelHandlerContext ctx) throws Exception

Overrides io.netty.channel.ChannelInboundHandlerAdapter.channelInactive.

Implements io.netty.channel.ChannelInboundHandler.channelInactive.

Doc from io.netty.channel.ChannelInboundHandlerAdapter.channelInactive.

Calls ChannelHandlerContext#fireChannelInactive() to forward to the next ChannelInboundHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.

Annotations
@Override
channelReadback to summary
public void channelRead(ChannelHandlerContext ctx, Object msg)

Overrides io.netty.channel.ChannelInboundHandlerAdapter.channelRead.

Implements io.netty.channel.ChannelInboundHandler.channelRead.

Doc from io.netty.channel.ChannelInboundHandlerAdapter.channelRead.

Calls ChannelHandlerContext#fireChannelRead(Object) to forward to the next ChannelInboundHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.

Annotations
@Override
handlerAddedback to summary
public void handlerAdded(ChannelHandlerContext ctx) throws Exception

Overrides io.netty.channel.ChannelHandlerAdapter.handlerAdded.

Implements io.netty.channel.ChannelHandler.handlerAdded.

Doc from io.netty.channel.ChannelHandler.handlerAdded.

Gets called after the ChannelHandler was added to the actual context and it's ready to handle events.

Annotations
@Override
handshakeCompleteback to summary
private void handshakeComplete(FullHttpResponse response)