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

public abstract non-sealed Class AbstractHttp3Frame

extends Object
implements Http3Frame
Class Inheritance
All Implemented Interfaces
jdk.internal.net.http.http3.frames.Http3Frame
Known Direct Subclasses
jdk.internal.net.http.http3.frames.CancelPushFrame, jdk.internal.net.http.http3.frames.GoAwayFrame, jdk.internal.net.http.http3.frames.MalformedFrame, jdk.internal.net.http.http3.frames.MaxPushIdFrame, jdk.internal.net.http.http3.frames.PartialFrame, jdk.internal.net.http.http3.frames.SettingsFrame
Imports
java.nio.BufferUnderflowException, .ByteBuffer, java.util.Random, jdk.internal.net.http.http3.Http3Error, jdk.internal.net.http.quic.BuffersReader, .VariableLengthEncoder

Super class for all HTTP/3 frames.

Field Summary

Modifier and TypeField and Description
public static final Random
pack-priv final long

Constructor Summary

AccessConstructor and Description
public
AbstractHttp3Frame(long type)

Method Summary

Modifier and TypeMethod and Description
protected static MalformedFrame
checkPayloadSize(long frameType, BuffersReader reader, long start, long length)

protected static long
decodeRequiredType(final BuffersReader reader, final long expectedType)

public int
public long

Returns:

the size of this frame.
size
()

Computes the size of this frame.

public long
streamingLength()

Overrides default jdk.internal.net.http.http3.frames.Http3Frame.streamingLength.

Returns the portion of the frame payload that can be read after the frame was created, when the current frame can be read as a partial frame, otherwise 0, if the payload can't be streamed.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public long
type()

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

Returns the type of this frame.

public final String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

RANDOMback to summary
public static final Random RANDOM
typeback to summary
pack-priv final long type

Constructor Detail

AbstractHttp3Frameback to summary
public AbstractHttp3Frame(long type)

Method Detail

checkPayloadSizeback to summary
protected static MalformedFrame checkPayloadSize(long frameType, BuffersReader reader, long start, long length)
decodeRequiredTypeback to summary
protected static long decodeRequiredType(final BuffersReader reader, final long expectedType)
headersSizeback to summary
public int headersSize()
sizeback to summary
public long size()

Computes the size of this frame. This corresponds to the length() of the frame's payload, plus the size needed to encode this length, plus the size needed to encode the frame type.

Returns:long

the size of this frame.

streamingLengthback to summary
public long streamingLength()

Overrides default jdk.internal.net.http.http3.frames.Http3Frame.streamingLength.

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

Returns the portion of the frame payload that can be read after the frame was created, when the current frame can be read as a partial frame, otherwise 0, if the payload can't be streamed.

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. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
typeback to summary
public long type()

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

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

Returns the type of this frame.

Annotations
@Override
typeAsStringback to summary
public final String typeAsString()