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 Http2Headershttp2Headers()Http2Headerssent in Push PromiseStringname()Returns the name of the HTTP/2 frame e.g.intpadding()Frame padding to use.intpromisedStreamId()Promised Stream IDHttp2FrameStreampushStream()Returns the PromiseHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.Http2StreamFramepushStream(Http2FrameStream stream)Set the PromiseHttp2FrameStreamobject for this frame.Http2FrameStreamstream()Returns theHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.Http2PushPromiseFramestream(Http2FrameStream stream)Set theHttp2FrameStreamobject for this frame.StringtoString()
-
-
-
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:Http2PushPromiseFrameSet the PromiseHttp2FrameStreamobject for this frame.- Specified by:
pushStreamin interfaceHttp2PushPromiseFrame
-
pushStream
public Http2FrameStream pushStream()
Description copied from interface:Http2PushPromiseFrameReturns the PromiseHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.- Specified by:
pushStreamin interfaceHttp2PushPromiseFrame
-
http2Headers
public Http2Headers http2Headers()
Description copied from interface:Http2PushPromiseFrameHttp2Headerssent in Push Promise- Specified by:
http2Headersin interfaceHttp2PushPromiseFrame
-
padding
public int padding()
Description copied from interface:Http2PushPromiseFrameFrame padding to use. Will be non-negative and less than 256.- Specified by:
paddingin interfaceHttp2PushPromiseFrame
-
promisedStreamId
public int promisedStreamId()
Description copied from interface:Http2PushPromiseFramePromised Stream ID- Specified by:
promisedStreamIdin interfaceHttp2PushPromiseFrame
-
stream
public Http2PushPromiseFrame stream(Http2FrameStream stream)
Description copied from interface:Http2StreamFrameSet theHttp2FrameStreamobject for this frame.- Specified by:
streamin interfaceHttp2PushPromiseFrame- Specified by:
streamin interfaceHttp2StreamFrame
-
stream
public Http2FrameStream stream()
Description copied from interface:Http2StreamFrameReturns theHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.- Specified by:
streamin interfaceHttp2StreamFrame
-
name
public String name()
Description copied from interface:Http2FrameReturns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
namein interfaceHttp2Frame
-
-