private static final class Http2MultiplexCodec.ChannelCarryingHeadersFrame extends java.lang.Object implements Http2HeadersFrame
Http2HeadersFrame of local/outbound stream. This allows us to get to the child channel
when receiving the Http2StreamActiveEvent from the frame codec. See Http2MultiplexCodec.onStreamActive(int, io.netty.handler.codec.http2.Http2HeadersFrame).| Modifier and Type | Field and Description |
|---|---|
private Http2MultiplexCodec.Http2StreamChannel |
childChannel |
private Http2HeadersFrame |
frame |
| Constructor and Description |
|---|
ChannelCarryingHeadersFrame(Http2HeadersFrame frame,
Http2MultiplexCodec.Http2StreamChannel childChannel) |
| Modifier and Type | Method and Description |
|---|---|
(package private) Http2MultiplexCodec.Http2StreamChannel |
channel() |
Http2Headers |
headers()
A complete header list.
|
boolean |
isEndStream()
true if this frame is the last one in this direction of the stream. |
java.lang.String |
name()
Returns the name of the HTTP/2 frame e.g.
|
int |
padding()
Frame padding to use.
|
int |
streamId()
The identifier of the stream this frame applies to.
|
Http2StreamFrame |
streamId(int streamId)
Sets the identifier of the stream this frame applies to.
|
private final Http2HeadersFrame frame
private final Http2MultiplexCodec.Http2StreamChannel childChannel
ChannelCarryingHeadersFrame(Http2HeadersFrame frame, Http2MultiplexCodec.Http2StreamChannel childChannel)
public Http2Headers headers()
Http2HeadersFrameheaders in interface Http2HeadersFramepublic boolean isEndStream()
Http2HeadersFrametrue if this frame is the last one in this direction of the stream.isEndStream in interface Http2HeadersFramepublic int padding()
Http2HeadersFramepadding in interface Http2HeadersFramepublic Http2StreamFrame streamId(int streamId)
Http2StreamFrameNOTE: This method is supposed to be called by the HTTP/2 transport only. It must not be called by users.
streamId in interface Http2StreamFramethispublic int streamId()
Http2StreamFramestreamId in interface Http2StreamFrame0 if the frame applies to the entire connection, a value greater than 0 if the frame
applies to a particular stream, or a value less than 0 if the frame has yet to be associated with
the connection or a stream.public java.lang.String name()
Http2Framename in interface Http2FrameHttp2MultiplexCodec.Http2StreamChannel channel()