public class ClientFrameListener
extends io.netty.handler.codec.http2.Http2EventAdapter
ClientFrameListener listens to HTTP/2 Events received from the HTTP/2 backend service
and construct HTTP/2 frames.| Constructor and Description |
|---|
ClientFrameListener() |
| Modifier and Type | Method and Description |
|---|---|
int |
onDataRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.buffer.ByteBuf data,
int padding,
boolean endOfStream) |
void |
onGoAwayReceived(int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData) |
void |
onGoAwaySent(int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData) |
void |
onHeadersRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding,
boolean endStream) |
void |
onHeadersRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
void |
onPushPromiseRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding) |
void |
onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
long errorCode) |
void |
onSettingsRead(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings settings) |
void |
setHttp2ClientChannel(Http2ClientChannel http2ClientChannel)
Sets the
TargetChannel associated with the ClientInboundHandler. |
public int onDataRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.buffer.ByteBuf data,
int padding,
boolean endOfStream)
onDataRead in interface io.netty.handler.codec.http2.Http2FrameListeneronDataRead in class io.netty.handler.codec.http2.Http2EventAdapterpublic void onHeadersRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream)
onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListeneronHeadersRead in class io.netty.handler.codec.http2.Http2EventAdapterpublic void onHeadersRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding,
boolean endStream)
onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListeneronHeadersRead in class io.netty.handler.codec.http2.Http2EventAdapterpublic void onSettingsRead(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings settings)
throws io.netty.handler.codec.http2.Http2Exception
onSettingsRead in interface io.netty.handler.codec.http2.Http2FrameListeneronSettingsRead in class io.netty.handler.codec.http2.Http2EventAdapterio.netty.handler.codec.http2.Http2Exceptionpublic void onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
long errorCode)
onRstStreamRead in interface io.netty.handler.codec.http2.Http2FrameListeneronRstStreamRead in class io.netty.handler.codec.http2.Http2EventAdapterpublic void onPushPromiseRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding)
throws io.netty.handler.codec.http2.Http2Exception
onPushPromiseRead in interface io.netty.handler.codec.http2.Http2FrameListeneronPushPromiseRead in class io.netty.handler.codec.http2.Http2EventAdapterio.netty.handler.codec.http2.Http2Exceptionpublic void onGoAwaySent(int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData)
onGoAwaySent in interface io.netty.handler.codec.http2.Http2Connection.ListeneronGoAwaySent in class io.netty.handler.codec.http2.Http2EventAdapterpublic void onGoAwayReceived(int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData)
onGoAwayReceived in interface io.netty.handler.codec.http2.Http2Connection.ListeneronGoAwayReceived in class io.netty.handler.codec.http2.Http2EventAdapterpublic void setHttp2ClientChannel(Http2ClientChannel http2ClientChannel)
TargetChannel associated with the ClientInboundHandler.http2ClientChannel - the associated TargetChannelCopyright © 2021 WSO2. All rights reserved.