ChannelDuplexHandler providing additional functionality for HTTP/2. Specifically it allows to:
newStream().forEachActiveStream(Http2FrameStreamVisitor).The Http2FrameCodec is required to be part of the ChannelPipeline before this handler is added,
or else an IllegalStateException will be thrown.
| Modifier and Type | Field and Description |
|---|---|
| private volatile Http2FrameCodec |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | forEachActiveStream(Http2FrameStreamVisitor streamVisitor)
Allows to iterate over all currently active streams. |
| public final void | handlerAdded(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| protected void | |
| public final void | handlerRemoved(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandler was removed from the actual context and it doesn't handle events
anymore.
|
| protected void | |
| public final Http2FrameStream | |
| private static Http2FrameCodec |
| frameCodec | back to summary |
|---|---|
| private volatile Http2FrameCodec frameCodec | |
| Http2ChannelDuplexHandler | back to summary |
|---|---|
| public Http2ChannelDuplexHandler() | |
| forEachActiveStream | back 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. | |
| handlerAdded | back to summary |
|---|---|
| public final void handlerAdded(ChannelHandlerContext ctx) throws Exception Overrides io. Implements io. Doc from io. Gets called after the
| |
| handlerAdded0 | back to summary |
|---|---|
| protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception | |
| handlerRemoved | back to summary |
|---|---|
| public final void handlerRemoved(ChannelHandlerContext ctx) throws Exception Overrides io. Implements io. Doc from io. Gets called after the
| |
| handlerRemoved0 | back to summary |
|---|---|
| protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception | |
| newStream | back to summary |
|---|---|
| public final Http2FrameStream newStream() Creates a new This method is thread-safe. | |
| requireHttp2FrameCodec | back to summary |
|---|---|
| private static Http2FrameCodec requireHttp2FrameCodec(ChannelHandlerContext ctx) | |