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 | Interface and Description |
---|---|
static interface |
Http2ConnectionDecoder.Builder
Builder for new instances of
Http2ConnectionDecoder . |
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 |
listener()
Provides direct access to the underlying frame listener.
|
Http2Settings |
localSettings()
Gets the local settings for this endpoint of the HTTP/2 connection.
|
void |
localSettings(Http2Settings settings)
Sets 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. |
Http2Connection connection()
Http2LocalFlowController flowController()
Http2FrameListener listener()
void decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Http2Exception
Http2ConnectionHandler
to decode the next frame from the input buffer.Http2Exception
Http2Settings localSettings()
void localSettings(Http2Settings settings) throws Http2Exception
Http2Exception
boolean prefaceReceived()
SETTINGS
frame was received from the remote endpoint.void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2008–2015 The Netty Project. All rights reserved.