Top Description Fields Constructors Methods
io.netty.handler.codec.http2

public final Class DefaultHttp2PushPromiseFrame

extends Object
implements Http2PushPromiseFrame
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http2.Http2PushPromiseFrame, io.netty.handler.codec.http2.Http2StreamFrame, io.netty.handler.codec.http2.Http2Frame
Annotations
@UnstableApi
Imports
io.netty.util.internal.UnstableApi

Default implementation of Http2PushPromiseFrame

Field Summary

Modifier and TypeField and Description
private final Http2Headers
private final int
private final int
private Http2FrameStream
private Http2FrameStream

Constructor Summary

AccessConstructor and Description
public
public
DefaultHttp2PushPromiseFrame(Http2Headers http2Headers, int padding)

pack-priv
DefaultHttp2PushPromiseFrame(Http2Headers http2Headers, int padding, int promisedStreamId)

Method Summary

Modifier and TypeMethod and Description
public Http2Headers
public String
name()

Implements io.netty.handler.codec.http2.Http2Frame.name.

Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.
public int
public int
public Http2StreamFrame
public Http2FrameStream
pushStream()

Implements io.netty.handler.codec.http2.Http2PushPromiseFrame.pushStream.

Returns the Promise Http2FrameStream object for this frame, or null if the frame has yet to be associated with a stream.
public Http2PushPromiseFrame
public Http2FrameStream
stream()

Implements io.netty.handler.codec.http2.Http2StreamFrame.stream.

Returns the Http2FrameStream object for this frame, or null if the frame has yet to be associated with a stream.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

http2Headersback to summary
private final Http2Headers http2Headers
paddingback to summary
private final int padding
promisedStreamIdback to summary
private final int promisedStreamId
pushStreamFrameback to summary
private Http2FrameStream pushStreamFrame
streamFrameback to summary
private Http2FrameStream streamFrame

Constructor Detail

DefaultHttp2PushPromiseFrameback to summary
public DefaultHttp2PushPromiseFrame(Http2Headers http2Headers)
DefaultHttp2PushPromiseFrameback to summary
public DefaultHttp2PushPromiseFrame(Http2Headers http2Headers, int padding)
DefaultHttp2PushPromiseFrameback to summary
pack-priv DefaultHttp2PushPromiseFrame(Http2Headers http2Headers, int padding, int promisedStreamId)

Method Detail

http2Headersback to summary
public Http2Headers http2Headers()

Implements io.netty.handler.codec.http2.Http2PushPromiseFrame.http2Headers.

Doc from io.netty.handler.codec.http2.Http2PushPromiseFrame.http2Headers.

Http2Headers sent in Push Promise

Annotations
@Override
nameback to summary
public String name()

Implements io.netty.handler.codec.http2.Http2Frame.name.

Doc from io.netty.handler.codec.http2.Http2Frame.name.

Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.

Annotations
@Override
paddingback to summary
public int padding()

Implements io.netty.handler.codec.http2.Http2PushPromiseFrame.padding.

Doc from io.netty.handler.codec.http2.Http2PushPromiseFrame.padding.

Frame padding to use. Will be non-negative and less than 256.

Annotations
@Override
promisedStreamIdback to summary
public int promisedStreamId()

Implements io.netty.handler.codec.http2.Http2PushPromiseFrame.promisedStreamId.

Doc from io.netty.handler.codec.http2.Http2PushPromiseFrame.promisedStreamId.

Promised Stream ID

Annotations
@Override
pushStreamback to summary
public Http2StreamFrame pushStream(Http2FrameStream stream)

Implements io.netty.handler.codec.http2.Http2PushPromiseFrame.pushStream.

Doc from io.netty.handler.codec.http2.Http2PushPromiseFrame.pushStream.

Set the Promise Http2FrameStream object for this frame.

Annotations
@Override
pushStreamback to summary
public Http2FrameStream pushStream()

Implements io.netty.handler.codec.http2.Http2PushPromiseFrame.pushStream.

Doc from io.netty.handler.codec.http2.Http2PushPromiseFrame.pushStream.

Returns the Promise Http2FrameStream object for this frame, or null if the frame has yet to be associated with a stream.

Annotations
@Override
streamback to summary
public Http2PushPromiseFrame stream(Http2FrameStream stream)

Implements io.netty.handler.codec.http2.Http2PushPromiseFrame.stream.

Doc from io.netty.handler.codec.http2.Http2StreamFrame.stream.

Set the Http2FrameStream object for this frame.

Annotations
@Override
streamback to summary
public Http2FrameStream stream()

Implements io.netty.handler.codec.http2.Http2StreamFrame.stream.

Doc from io.netty.handler.codec.http2.Http2StreamFrame.stream.

Returns the Http2FrameStream object for this frame, or null if the frame has yet to be associated with a stream.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override