@UnstableApi public class FixedHttp2ConnectionDecoder extends Object implements 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 |
|---|
FixedHttp2ConnectionDecoder(Http2Connection connection,
Http2ConnectionEncoder encoder,
Http2FrameReader frameReader) |
FixedHttp2ConnectionDecoder(Http2Connection connection,
Http2ConnectionEncoder encoder,
Http2FrameReader frameReader,
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() |
Http2Connection |
connection() |
void |
decodeFrame(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
Http2LocalFlowController |
flowController() |
Http2FrameListener |
frameListener() |
void |
frameListener(Http2FrameListener listener) |
void |
lifecycleManager(Http2LifecycleManager lifecycleManager) |
Http2Settings |
localSettings() |
boolean |
prefaceReceived() |
public FixedHttp2ConnectionDecoder(Http2Connection connection, Http2ConnectionEncoder encoder, Http2FrameReader frameReader)
public FixedHttp2ConnectionDecoder(Http2Connection connection, Http2ConnectionEncoder encoder, Http2FrameReader frameReader, Http2PromisedRequestVerifier requestVerifier)
public void lifecycleManager(Http2LifecycleManager lifecycleManager)
lifecycleManager in interface Http2ConnectionDecoderpublic Http2Connection connection()
connection in interface Http2ConnectionDecoderpublic final Http2LocalFlowController flowController()
flowController in interface Http2ConnectionDecoderpublic void frameListener(Http2FrameListener listener)
frameListener in interface Http2ConnectionDecoderpublic Http2FrameListener frameListener()
frameListener in interface Http2ConnectionDecoderpublic boolean prefaceReceived()
prefaceReceived in interface Http2ConnectionDecoderpublic void decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Http2Exception
decodeFrame in interface Http2ConnectionDecoderHttp2Exceptionpublic Http2Settings localSettings()
localSettings in interface Http2ConnectionDecoderpublic void close()
close in interface Http2ConnectionDecoderclose in interface Closeableclose in interface AutoCloseableprotected 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.