Class DefaultHttp2PushPromiseFrame
java.lang.Object
io.netty.handler.codec.http2.DefaultHttp2PushPromiseFrame
- All Implemented Interfaces:
Http2Frame, Http2PushPromiseFrame, Http2StreamFrame
Default implementation of
Http2PushPromiseFrame-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttp2PushPromiseFrame(Http2Headers http2Headers) DefaultHttp2PushPromiseFrame(Http2Headers http2Headers, int padding) -
Method Summary
Modifier and TypeMethodDescriptionHttp2Headerssent in Push Promisename()Returns the name of the HTTP/2 frame e.g.intpadding()Frame padding to use.intPromised Stream IDReturns the PromiseHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.pushStream(Http2FrameStream stream) Set the PromiseHttp2FrameStreamobject for this frame.stream()Returns theHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.stream(Http2FrameStream stream) Set theHttp2FrameStreamobject for this frame.toString()
-
Constructor Details
-
DefaultHttp2PushPromiseFrame
-
DefaultHttp2PushPromiseFrame
-
-
Method Details
-
pushStream
Description copied from interface:Http2PushPromiseFrameSet the PromiseHttp2FrameStreamobject for this frame.- Specified by:
pushStreamin interfaceHttp2PushPromiseFrame
-
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
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
Description copied from interface:Http2StreamFrameSet theHttp2FrameStreamobject for this frame.- Specified by:
streamin interfaceHttp2PushPromiseFrame- Specified by:
streamin interfaceHttp2StreamFrame
-
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
Description copied from interface:Http2FrameReturns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
namein interfaceHttp2Frame
-
toString
-