@UnstableApi public class ForkedDefaultHttp2ConnectionDecoder extends Object implements io.netty.handler.codec.http2.Http2ConnectionDecoder
Http2FrameListener
This class will read HTTP/2 frames and delegate the events to a Http2FrameListener
This interface enforces inbound flow control functionality through
Http2LocalFlowController
Constructor and Description |
---|
ForkedDefaultHttp2ConnectionDecoder(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.Http2ConnectionEncoder encoder,
io.netty.handler.codec.http2.Http2FrameReader frameReader) |
ForkedDefaultHttp2ConnectionDecoder(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.Http2ConnectionEncoder encoder,
io.netty.handler.codec.http2.Http2FrameReader frameReader,
io.netty.handler.codec.http2.Http2PromisedRequestVerifier requestVerifier) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateMaxHeaderListSizeGoAway(long maxHeaderListSize)
Calculate the threshold in bytes which should trigger a
GO_AWAY if a set of headers exceeds this amount. |
void |
close() |
io.netty.handler.codec.http2.Http2Connection |
connection() |
void |
decodeFrame(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
io.netty.handler.codec.http2.Http2LocalFlowController |
flowController() |
io.netty.handler.codec.http2.Http2FrameListener |
frameListener() |
void |
frameListener(io.netty.handler.codec.http2.Http2FrameListener listener) |
void |
lifecycleManager(io.netty.handler.codec.http2.Http2LifecycleManager lifecycleManager) |
io.netty.handler.codec.http2.Http2Settings |
localSettings() |
boolean |
prefaceReceived() |
public ForkedDefaultHttp2ConnectionDecoder(io.netty.handler.codec.http2.Http2Connection connection, io.netty.handler.codec.http2.Http2ConnectionEncoder encoder, io.netty.handler.codec.http2.Http2FrameReader frameReader)
public ForkedDefaultHttp2ConnectionDecoder(io.netty.handler.codec.http2.Http2Connection connection, io.netty.handler.codec.http2.Http2ConnectionEncoder encoder, io.netty.handler.codec.http2.Http2FrameReader frameReader, io.netty.handler.codec.http2.Http2PromisedRequestVerifier requestVerifier)
public void lifecycleManager(io.netty.handler.codec.http2.Http2LifecycleManager lifecycleManager)
lifecycleManager
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
public io.netty.handler.codec.http2.Http2Connection connection()
connection
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
public final io.netty.handler.codec.http2.Http2LocalFlowController flowController()
flowController
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
public void frameListener(io.netty.handler.codec.http2.Http2FrameListener listener)
frameListener
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
public io.netty.handler.codec.http2.Http2FrameListener frameListener()
frameListener
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
public boolean prefaceReceived()
prefaceReceived
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
public void decodeFrame(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out) throws io.netty.handler.codec.http2.Http2Exception
decodeFrame
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
io.netty.handler.codec.http2.Http2Exception
public io.netty.handler.codec.http2.Http2Settings localSettings()
localSettings
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
public void close()
close
in interface io.netty.handler.codec.http2.Http2ConnectionDecoder
close
in interface Closeable
close
in interface AutoCloseable
protected long calculateMaxHeaderListSizeGoAway(long maxHeaderListSize)
GO_AWAY
if a set of headers exceeds this amount.maxHeaderListSize
- SETTINGS_MAX_HEADER_LIST_SIZE for the local
endpoint.GO_AWAY
if a set of headers exceeds this amount.Copyright © 2019. All rights reserved.