public final class Http2SourceHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
HTTP2SourceHandler read the HTTP/2 binary frames sent from client through the channel.
This is also responsible for building the HttpCarbonRequest and forward to the listener
interested in request messages.
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
io.netty.channel.ChannelHandlerContext |
getChannelHandlerContext() |
io.netty.handler.codec.http2.Http2Connection |
getConnection() |
io.netty.handler.codec.http2.Http2ConnectionEncoder |
getEncoder() |
Http2ServerChannel |
getHttp2ServerChannel() |
io.netty.channel.ChannelHandlerContext |
getInboundChannelContext() |
String |
getInterfaceId() |
SocketAddress |
getRemoteAddress() |
String |
getRemoteHost() |
HttpServerChannelInitializer |
getServerChannelInitializer() |
ServerConnectorFuture |
getServerConnectorFuture() |
String |
getServerName() |
ServerRemoteFlowControlListener |
getServerRemoteFlowControlListener() |
Map<Integer,InboundMessageHolder> |
getStreamIdRequestMap() |
Map<String,org.apache.commons.pool.impl.GenericObjectPool> |
getTargetChannelPool() |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
Handles the cleartext HTTP upgrade event.
|
channelActive, channelReadComplete, channelRegistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerRemoved, isSharablepublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
If an upgrade occurred, message needs to be dispatched to the correct service/resource and response should be delivered over stream 1 (the stream specifically reserved for cleartext HTTP upgrade).
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws io.netty.handler.codec.http2.Http2Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterio.netty.handler.codec.http2.Http2Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterpublic void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
channelUnregistered in interface io.netty.channel.ChannelInboundHandlerchannelUnregistered in class io.netty.channel.ChannelInboundHandlerAdapterpublic Map<Integer,InboundMessageHolder> getStreamIdRequestMap()
public io.netty.channel.ChannelHandlerContext getChannelHandlerContext()
public ServerConnectorFuture getServerConnectorFuture()
public HttpServerChannelInitializer getServerChannelInitializer()
public io.netty.handler.codec.http2.Http2ConnectionEncoder getEncoder()
public io.netty.handler.codec.http2.Http2Connection getConnection()
public String getInterfaceId()
public String getServerName()
public String getRemoteHost()
public Map<String,org.apache.commons.pool.impl.GenericObjectPool> getTargetChannelPool()
public io.netty.channel.ChannelHandlerContext getInboundChannelContext()
public ServerRemoteFlowControlListener getServerRemoteFlowControlListener()
public Http2ServerChannel getHttp2ServerChannel()
public SocketAddress getRemoteAddress()
Copyright © 2021 WSO2. All rights reserved.