public class DefaultHttp2ConnectionDecoder 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
Modifier and Type | Class and Description |
---|---|
static class |
DefaultHttp2ConnectionDecoder.Builder
Builder for instances of
DefaultHttp2ConnectionDecoder . |
Modifier | Constructor and Description |
---|---|
protected |
DefaultHttp2ConnectionDecoder(DefaultHttp2ConnectionDecoder.Builder builder) |
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.
|
static DefaultHttp2ConnectionDecoder.Builder |
newBuilder() |
boolean |
prefaceReceived()
Indicates whether or not the first initial
SETTINGS frame was received from the remote endpoint. |
protected DefaultHttp2ConnectionDecoder(DefaultHttp2ConnectionDecoder.Builder builder)
public static DefaultHttp2ConnectionDecoder.Builder newBuilder()
public Http2Connection connection()
Http2ConnectionDecoder
connection
in interface Http2ConnectionDecoder
public final Http2LocalFlowController flowController()
Http2ConnectionDecoder
flowController
in interface Http2ConnectionDecoder
public Http2FrameListener listener()
Http2ConnectionDecoder
listener
in interface Http2ConnectionDecoder
public boolean prefaceReceived()
Http2ConnectionDecoder
SETTINGS
frame was received from the remote endpoint.prefaceReceived
in interface Http2ConnectionDecoder
public void decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Http2Exception
Http2ConnectionDecoder
Http2ConnectionHandler
to decode the next frame from the input buffer.decodeFrame
in interface Http2ConnectionDecoder
Http2Exception
public Http2Settings localSettings()
Http2ConnectionDecoder
localSettings
in interface Http2ConnectionDecoder
public void localSettings(Http2Settings settings) throws Http2Exception
Http2ConnectionDecoder
localSettings
in interface Http2ConnectionDecoder
Http2Exception
public void close()
close
in interface Http2ConnectionDecoder
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2008–2015 The Netty Project. All rights reserved.