public interface Http2ConnectionDecoder extends Closeable
Http2ConnectionHandler
. Performs basic protocol
conformance on inbound frames before calling the delegate Http2FrameListener
for
application-specific processing. Note that frames of an unknown type (i.e. HTTP/2 extensions)
will skip all protocol checks and be given directly to the listener for processing.Modifier and Type | Method and Description |
---|---|
void |
close() |
Http2Connection |
connection()
Provides direct access to the underlying connection.
|
void |
decodeFrame(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out)
Called by the
Http2ConnectionHandler to decode the next frame from the input buffer. |
Http2LocalFlowController |
flowController()
Provides the local flow controller for managing inbound traffic.
|
Http2FrameListener |
frameListener()
Get the
Http2FrameListener which will be notified when frames are decoded. |
void |
frameListener(Http2FrameListener listener)
Set the
Http2FrameListener which will be notified when frames are decoded. |
void |
lifecycleManager(Http2LifecycleManager lifecycleManager)
Sets the lifecycle manager.
|
Http2Settings |
localSettings()
Gets the local settings for this endpoint of the HTTP/2 connection.
|
boolean |
prefaceReceived()
Indicates whether or not the first initial
SETTINGS frame was received from the remote endpoint. |
void lifecycleManager(Http2LifecycleManager lifecycleManager)
Http2Connection connection()
Http2LocalFlowController flowController()
void frameListener(Http2FrameListener listener)
Http2FrameListener
which will be notified when frames are decoded.
This must be set before frames are decoded.
Http2FrameListener frameListener()
Http2FrameListener
which will be notified when frames are decoded.void decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Http2Exception
Http2ConnectionHandler
to decode the next frame from the input buffer.Http2Exception
Http2Settings localSettings()
boolean prefaceReceived()
SETTINGS
frame was received from the remote endpoint.void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2008–2024 The Netty Project. All rights reserved.