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

public abstract Class Http2ChannelDuplexHandler

extends Object
implements ChannelHandler
Class Inheritance
All Implemented Interfaces
io.netty5.channel.ChannelHandler
Known Direct Subclasses
io.netty5.handler.codec.http2.Http2MultiplexHandler
Annotations
@UnstableApi
Imports
io.netty5.channel.ChannelHandler, .ChannelHandlerContext, .ChannelPipeline, io.netty5.util.internal.StringUtil, .UnstableApi

A ChannelHandler providing additional functionality for HTTP/2. Specifically it allows to:

The Http2FrameCodec is required to be part of the ChannelPipeline before this handler is added, or else an IllegalStateException will be thrown.

Field Summary

Modifier and TypeField and Description
private volatile Http2FrameCodec

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected final void
forEachActiveStream(Http2FrameStreamVisitor streamVisitor)

Allows to iterate over all currently active streams.

public final void
handlerAdded(ChannelHandlerContext ctx)

Overrides default io.netty5.channel.ChannelHandler.handlerAdded.

Gets called after the ChannelHandler was added to the actual context and it's ready to handle events.
protected void
public final void
handlerRemoved(ChannelHandlerContext ctx)

Overrides default io.netty5.channel.ChannelHandler.handlerRemoved.

Gets called after the ChannelHandler was removed from the actual context and it doesn't handle events anymore.
protected void
public final Http2FrameStream
newStream()

Creates a new Http2FrameStream object.

private static Http2FrameCodec
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

frameCodecback to summary
private volatile Http2FrameCodec frameCodec

Constructor Detail

Http2ChannelDuplexHandlerback to summary
public Http2ChannelDuplexHandler()

Method Detail

forEachActiveStreamback to summary
protected final void forEachActiveStream(Http2FrameStreamVisitor streamVisitor) throws Http2Exception

Allows to iterate over all currently active streams.

This method may only be called from the eventloop thread.

handlerAddedback to summary
public final void handlerAdded(ChannelHandlerContext ctx) throws Exception

Overrides default io.netty5.channel.ChannelHandler.handlerAdded.

Doc from io.netty5.channel.ChannelHandler.handlerAdded.

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

Annotations
@Override
handlerAdded0back to summary
protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception
handlerRemovedback to summary
public final void handlerRemoved(ChannelHandlerContext ctx) throws Exception

Overrides default io.netty5.channel.ChannelHandler.handlerRemoved.

Doc from io.netty5.channel.ChannelHandler.handlerRemoved.

Gets called after the ChannelHandler was removed from the actual context and it doesn't handle events anymore.

Annotations
@Override
handlerRemoved0back to summary
protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception
newStreamback to summary
public final Http2FrameStream newStream()

Creates a new Http2FrameStream object.

This method is thread-safe.

requireHttp2FrameCodecback to summary
private static Http2FrameCodec requireHttp2FrameCodec(ChannelHandlerContext ctx)