Module io.netty.codec.http2
Package io.netty5.handler.codec.http2
Class DefaultHttp2PushPromiseFrame
- java.lang.Object
-
- io.netty5.handler.codec.http2.DefaultHttp2PushPromiseFrame
-
- All Implemented Interfaces:
Http2Frame
,Http2PushPromiseFrame
,Http2StreamFrame
@UnstableApi public final class DefaultHttp2PushPromiseFrame extends Object implements Http2PushPromiseFrame
Default implementation ofHttp2PushPromiseFrame
-
-
Constructor Summary
Constructors Constructor Description DefaultHttp2PushPromiseFrame(Http2Headers http2Headers)
DefaultHttp2PushPromiseFrame(Http2Headers http2Headers, int padding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Http2Headers
http2Headers()
Http2Headers
sent in Push PromiseString
name()
Returns the name of the HTTP/2 frame e.g.int
padding()
Frame padding to use.int
promisedStreamId()
Promised Stream IDHttp2FrameStream
pushStream()
Returns the PromiseHttp2FrameStream
object for this frame, ornull
if the frame has yet to be associated with a stream.Http2StreamFrame
pushStream(Http2FrameStream stream)
Set the PromiseHttp2FrameStream
object for this frame.Http2FrameStream
stream()
Returns theHttp2FrameStream
object for this frame, ornull
if the frame has yet to be associated with a stream.Http2PushPromiseFrame
stream(Http2FrameStream stream)
Set theHttp2FrameStream
object for this frame.String
toString()
-
-
-
Constructor Detail
-
DefaultHttp2PushPromiseFrame
public DefaultHttp2PushPromiseFrame(Http2Headers http2Headers)
-
DefaultHttp2PushPromiseFrame
public DefaultHttp2PushPromiseFrame(Http2Headers http2Headers, int padding)
-
-
Method Detail
-
pushStream
public Http2StreamFrame pushStream(Http2FrameStream stream)
Description copied from interface:Http2PushPromiseFrame
Set the PromiseHttp2FrameStream
object for this frame.- Specified by:
pushStream
in interfaceHttp2PushPromiseFrame
-
pushStream
public Http2FrameStream pushStream()
Description copied from interface:Http2PushPromiseFrame
Returns the PromiseHttp2FrameStream
object for this frame, ornull
if the frame has yet to be associated with a stream.- Specified by:
pushStream
in interfaceHttp2PushPromiseFrame
-
http2Headers
public Http2Headers http2Headers()
Description copied from interface:Http2PushPromiseFrame
Http2Headers
sent in Push Promise- Specified by:
http2Headers
in interfaceHttp2PushPromiseFrame
-
padding
public int padding()
Description copied from interface:Http2PushPromiseFrame
Frame padding to use. Will be non-negative and less than 256.- Specified by:
padding
in interfaceHttp2PushPromiseFrame
-
promisedStreamId
public int promisedStreamId()
Description copied from interface:Http2PushPromiseFrame
Promised Stream ID- Specified by:
promisedStreamId
in interfaceHttp2PushPromiseFrame
-
stream
public Http2PushPromiseFrame stream(Http2FrameStream stream)
Description copied from interface:Http2StreamFrame
Set theHttp2FrameStream
object for this frame.- Specified by:
stream
in interfaceHttp2PushPromiseFrame
- Specified by:
stream
in interfaceHttp2StreamFrame
-
stream
public Http2FrameStream stream()
Description copied from interface:Http2StreamFrame
Returns theHttp2FrameStream
object for this frame, ornull
if the frame has yet to be associated with a stream.- Specified by:
stream
in interfaceHttp2StreamFrame
-
name
public String name()
Description copied from interface:Http2Frame
Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
name
in interfaceHttp2Frame
-
-