public class Http2TargetHandler
extends io.netty.channel.ChannelDuplexHandler
Http2TargetHandler is responsible for sending and receiving HTTP/2 frames over an outbound connection.| Modifier and Type | Class and Description |
|---|---|
class |
Http2TargetHandler.Http2RequestWriter
Http2RequestWriter is used to write Http2 content to the connection. |
| Constructor and Description |
|---|
Http2TargetHandler(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.Http2ConnectionEncoder encoder) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
io.netty.handler.codec.http2.Http2Connection |
getConnection()
Gets the associated
Http2Connection. |
io.netty.handler.codec.http2.Http2ConnectionEncoder |
getEncoder()
Gets the
Http2ConnectionEncoder. |
Http2ClientChannel |
getHttp2ClientChannel()
Gets the
Http2ClientChannel. |
void |
setHttp2ClientChannel(Http2ClientChannel http2ClientChannel)
Sets the
Http2ClientChannel. |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, readchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic Http2TargetHandler(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.Http2ConnectionEncoder encoder)
public void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.channel.ChannelDuplexHandlerpublic io.netty.handler.codec.http2.Http2Connection getConnection()
Http2Connection.public void setHttp2ClientChannel(Http2ClientChannel http2ClientChannel)
Http2ClientChannel.http2ClientChannel - the client channel related to the handlerpublic Http2ClientChannel getHttp2ClientChannel()
Http2ClientChannel.public io.netty.handler.codec.http2.Http2ConnectionEncoder getEncoder()
Http2ConnectionEncoder.public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2021 WSO2. All rights reserved.