Http2ConnectionEncoder.
| Modifier and Type | Class and Description |
|---|---|
| public abstract class | DefaultHttp2ConnectionEncoder.FlowControlledBase
Common base type for payloads to deliver via flow-control. |
| private class | DefaultHttp2ConnectionEncoder.FlowControlledData
Wrap a DATA frame so it can be written subject to flow-control. |
| private class | DefaultHttp2ConnectionEncoder.FlowControlledHeaders
Wrap headers so they can be written subject to flow-control. |
| Modifier and Type | Field and Description |
|---|---|
| private final Http2Connection | |
| private final Http2FrameWriter | |
| private Http2LifecycleManager | |
| private final Queue | |
| private Queue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements io. |
| public Http2FrameWriter. | configuration()
Implements io. Http2FrameWriter
|
| public Http2Connection | connection()
Implements io. |
| public void | consumeReceivedSettings(Http2Settings settings)
Implements io. |
| public final Http2RemoteFlowController | flowController()
Implements io. |
| public Http2FrameWriter | frameWriter()
Implements io. |
| public void | lifecycleManager(Http2LifecycleManager lifecycleManager)
Implements io. |
| private void | |
| public Http2Settings | pollSentSettings()
Implements io. |
| public void | remoteSettings(Http2Settings settings)
Implements io. |
| private Http2Stream | |
| private static Future | sendHeaders(Http2FrameWriter frameWriter, ChannelHandlerContext ctx, int streamId, Http2Headers headers, final boolean hasPriority, int streamDependency, final short weight, boolean exclusive, final int padding, boolean endOfStream)
Write headers via |
| private static boolean | validateHeadersSentState(Http2Stream stream, Http2Headers headers, boolean isServer, boolean endOfStream)
|
| public Future | writeData(final ChannelHandlerContext
the context to use for writing. ctx, final int the stream for which to send the frame. streamId, Buffer the payload of the frame. This will be released by this method. data, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). A 1 byte padding is encoded as just the pad length field with value 0.
A 256 byte padding is encoded as the pad length field with value 255 and 255 padding bytes
appended to the end of the frame. padding, final boolean indicates if this is the last frame to be sent for the stream. endOfStream)Implements io. DATA frame to the remote endpoint.
|
| public Future | writeFrame(ChannelHandlerContext
the context to use for writing. ctx, byte the frame type identifier. frameType, int the stream for which to send the frame. streamId, Http2Flags the flags to write for this frame. flags, Buffer the payload to write for this frame. This will be released by this method. payload)Implements io. Http2FrameWriter without performing any
state checks on the connection/stream.
|
| public Future | writeGoAway(ChannelHandlerContext
the context to use for writing. ctx, int the last known stream of this endpoint. lastStreamId, long the error code, if the connection was abnormally terminated. errorCode, Buffer application-defined debug data. This will be released by this method. debugData)Implements io. |
| public Future | writeHeaders(ChannelHandlerContext
the context to use for writing. ctx, int the stream for which to send the frame. streamId, Http2Headers the headers to be sent. headers, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, boolean indicates if this is the last frame to be sent for the stream. endStream)Implements io. |
| public Future | writeHeaders(final ChannelHandlerContext
the context to use for writing. ctx, final int the stream for which to send the frame. streamId, final Http2Headers the headers to be sent. headers, final int the stream on which this stream should depend, or 0 if it should
depend on the connection. streamDependency, final short the weight for this stream. weight, final boolean whether this stream should be the exclusive dependant of its parent. exclusive, final int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, final boolean indicates if this is the last frame to be sent for the stream. endOfStream)Implements io. |
| private Future | writeHeaders0(final ChannelHandlerContext ctx, final int streamId, final Http2Headers headers, final boolean hasPriority, final int streamDependency, final short weight, final boolean exclusive, final int padding, final boolean endOfStream)
|
| public Future | writePing(ChannelHandlerContext
the context to use for writing. ctx, boolean indicates whether this is an ack of a PING frame previously received from the
remote endpoint. ack, long the payload of the frame. data)Implements io. |
| public Future | writePriority(ChannelHandlerContext
the context to use for writing. ctx, int the stream for which to send the frame. streamId, int the stream on which this stream should depend, or 0 if it should
depend on the connection. streamDependency, short the weight for this stream. weight, boolean whether this stream should be the exclusive dependant of its parent. exclusive)Implements io. |
| public Future | writePushPromise(ChannelHandlerContext
the context to use for writing. ctx, int the stream for which to send the frame. streamId, int the ID of the promised stream. promisedStreamId, Http2Headers the headers to be sent. headers, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding)Implements io. |
| public Future | writeRstStream(ChannelHandlerContext
the context to use for writing. ctx, int the stream for which to send the frame. streamId, long the error code indicating the nature of the failure. errorCode)Implements io. |
| public Future | writeSettings(ChannelHandlerContext
the context to use for writing. ctx, Http2Settings the settings to be sent. settings)Implements io. |
| public Future | writeSettingsAck(ChannelHandlerContext
the context to use for writing. ctx)Implements io. |
| public Future | writeWindowUpdate(ChannelHandlerContext
the context to use for writing. ctx, int the stream for which to send the frame. streamId, int the number of bytes by which the local inbound flow control window
is increasing. windowSizeIncrement)Implements io. |