public class Http2InboundHttp2ToHttpAdapter
extends io.netty.handler.codec.http2.Http2EventAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
propagateSettings |
private boolean |
validateHttpHeaders |
| 限定符 | 构造器和说明 |
|---|---|
protected |
Http2InboundHttp2ToHttpAdapter(boolean validateHttpHeaders,
boolean propagateSettings) |
| 限定符和类型 | 方法和说明 |
|---|---|
private io.netty.handler.codec.http.DefaultHttpContent |
createMessage() |
private io.netty.handler.codec.http.DefaultHttpContent |
createMessage(io.netty.buffer.ByteBuf data) |
private void |
fireChannelRead(ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject message) |
int |
onDataRead(ChannelHandlerContext ctx,
int streamId,
io.netty.buffer.ByteBuf data,
int padding,
boolean endOfStream) |
void |
onHeadersRead(ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding,
boolean endOfStream) |
void |
onHeadersRead(ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream) |
void |
onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding) |
void |
onRstStreamRead(ChannelHandlerContext ctx,
int streamId,
long errorCode) |
void |
onSettingsRead(ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings settings) |
void |
onStreamRemoved(io.netty.handler.codec.http2.Http2Stream stream) |
private final boolean validateHttpHeaders
private final boolean propagateSettings
protected Http2InboundHttp2ToHttpAdapter(boolean validateHttpHeaders,
boolean propagateSettings)
public int onDataRead(ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception
onDataRead 在接口中 io.netty.handler.codec.http2.Http2FrameListeneronDataRead 在类中 io.netty.handler.codec.http2.Http2EventAdapterio.netty.handler.codec.http2.Http2Exceptionpublic void onHeadersRead(ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception
onHeadersRead 在接口中 io.netty.handler.codec.http2.Http2FrameListeneronHeadersRead 在类中 io.netty.handler.codec.http2.Http2EventAdapterio.netty.handler.codec.http2.Http2Exceptionpublic void onHeadersRead(ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception
onHeadersRead 在接口中 io.netty.handler.codec.http2.Http2FrameListeneronHeadersRead 在类中 io.netty.handler.codec.http2.Http2EventAdapterio.netty.handler.codec.http2.Http2Exceptionpublic void onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding) throws io.netty.handler.codec.http2.Http2Exception
onPushPromiseRead 在接口中 io.netty.handler.codec.http2.Http2FrameListeneronPushPromiseRead 在类中 io.netty.handler.codec.http2.Http2EventAdapterio.netty.handler.codec.http2.Http2Exceptionpublic void onStreamRemoved(io.netty.handler.codec.http2.Http2Stream stream)
onStreamRemoved 在接口中 io.netty.handler.codec.http2.Http2Connection.ListeneronStreamRemoved 在类中 io.netty.handler.codec.http2.Http2EventAdapterpublic void onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) throws io.netty.handler.codec.http2.Http2Exception
onRstStreamRead 在接口中 io.netty.handler.codec.http2.Http2FrameListeneronRstStreamRead 在类中 io.netty.handler.codec.http2.Http2EventAdapterio.netty.handler.codec.http2.Http2Exceptionpublic void onSettingsRead(ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings) throws io.netty.handler.codec.http2.Http2Exception
onSettingsRead 在接口中 io.netty.handler.codec.http2.Http2FrameListeneronSettingsRead 在类中 io.netty.handler.codec.http2.Http2EventAdapterio.netty.handler.codec.http2.Http2Exceptionprivate void fireChannelRead(ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpObject message)
private io.netty.handler.codec.http.DefaultHttpContent createMessage()
private io.netty.handler.codec.http.DefaultHttpContent createMessage(io.netty.buffer.ByteBuf data)
Copyright © 2021 Zodiac. All rights reserved.