APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.net.http.http3.frames

public final Class UnknownFrame

extends PartialFrame
Class Inheritance

A class to model an unknown or reserved frame.

API Note

From RFC 9114:

Frame types of the format 0x1f * N + 0x21 for non-negative integer values of N are reserved to exercise the requirement that unknown types be ignored (Section 9). These frames have no semantics, and MAY be sent on any stream where frames are allowed to be sent. This enables their use for application-layer padding. Endpoints MUST NOT consider these frames to have any meaning upon receipt.

API Note

An instance of UnknownFrame is used to read or writes the frame's type and length. The payload is supposed to be read or written directly to the stream on its own, after having read or written the frame type and length.

See Also
jdk.internal.net.http.http3.frames.PartialFrame

Field Summary

Modifier and TypeField and Description
pack-priv final long

Constructor Summary

AccessConstructor and Description
pack-priv
UnknownFrame(long type, long length)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this frame type is one of the reserved types
isReserved
()

Returns true if this frame type is one of the reserved types.

public long
length()

Implements jdk.internal.net.http.http3.frames.Http3Frame.length.

Returns the length of this frame.

Inherited from jdk.internal.net.http.http3.frames.PartialFrame:
nextPayloadBytesnextPayloadBytesremainingstreamingLengthtoStringwriteHeaders

Field Detail

lengthback to summary
pack-priv final long length

Constructor Detail

UnknownFrameback to summary
pack-priv UnknownFrame(long type, long length)

Method Detail

isReservedback to summary
public boolean isReserved()

Returns true if this frame type is one of the reserved types.

Returns:boolean

true if this frame type is one of the reserved types

lengthback to summary
public long length()

Implements jdk.internal.net.http.http3.frames.Http3Frame.length.

Doc from jdk.internal.net.http.http3.frames.Http3Frame.length.

Returns the length of this frame.

Annotations
@Override