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()
Http2HeadersFrame
headers
in interface Http2HeadersFrame
public boolean isEndStream()
Http2HeadersFrame
true
if this frame is the last one in this direction of the stream.isEndStream
in interface Http2HeadersFrame
public int padding()
Http2HeadersFrame
padding
in interface Http2HeadersFrame
public Http2StreamFrame streamId(int streamId)
Http2StreamFrame
NOTE: This method is supposed to be called by the HTTP/2 transport only. It must not be called by users.
streamId
in interface Http2StreamFrame
this
public int streamId()
Http2StreamFrame
streamId
in interface Http2StreamFrame
0
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()
Http2Frame
name
in interface Http2Frame
Http2MultiplexCodec.Http2StreamChannel channel()