Top Description Fields Constructors Methods
io.netty.handler.codec.http2

public Class InboundHttpToHttp2Adapter

extends ChannelInboundHandlerAdapter
Class Inheritance
Annotations
@UnstableApi
Imports
io.netty.channel.ChannelHandlerContext, .ChannelInboundHandlerAdapter, io.netty.handler.codec.http.FullHttpMessage, .HttpHeaders, .HttpScheme, io.netty.util.internal.UnstableApi

Translates HTTP/1.x object reads into HTTP/2 frames.

Field Summary

Modifier and TypeField and Description
private final Http2Connection
private final Http2FrameListener

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private static int
getStreamId(Http2Connection connection, HttpHeaders httpHeaders)

pack-priv static void
Inherited from io.netty.channel.ChannelInboundHandlerAdapter:
channelActivechannelInactivechannelReadCompletechannelRegisteredchannelUnregisteredchannelWritabilityChangedexceptionCaughtuserEventTriggered

Field Detail

connectionback to summary
private final Http2Connection connection
listenerback to summary
private final Http2FrameListener listener

Constructor Detail

InboundHttpToHttp2Adapterback to summary
public InboundHttpToHttp2Adapter(Http2Connection connection, Http2FrameListener listener)

Method Detail

channelReadback to summary
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception

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
getStreamIdback to summary
private static int getStreamId(Http2Connection connection, HttpHeaders httpHeaders)
handleback to summary
pack-priv static void handle(ChannelHandlerContext ctx, Http2Connection connection, Http2FrameListener listener, FullHttpMessage message) throws Http2Exception