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

public final Class PaddingFrame

extends QuicFrame
Class Inheritance
Imports
jdk.internal.net.quic.QuicTransportException, java.nio.BufferOverflowException, .ByteBuffer

PaddingFrames. Since padding frames comprise a single zero byte this class actually represents sequences of PaddingFrames. When decoding, the class consumes all the zero bytes that are available and when encoding, the number of required padding bytes is specified.
External Specification
https://www.rfc-editor.org/info/rfc9000

Field Summary

Modifier and TypeField and Description
private final int
Inherited from jdk.internal.net.http.quic.frames.QuicFrame:
ACKCONNECTION_CLOSECRYPTODATA_BLOCKEDHANDSHAKE_DONEMAX_DATAMAX_STREAM_DATAMAX_STREAMSMAX_VL_INTEGERNEW_CONNECTION_IDNEW_TOKENPADDINGPATH_CHALLENGEPATH_RESPONSEPINGRESET_STREAMRETIRE_CONNECTION_IDSTOP_SENDINGSTREAMSTREAM_DATA_BLOCKEDSTREAMS_BLOCKED

Constructor Summary

AccessConstructor and Description
pack-priv
PaddingFrame(ByteBuffer buffer, int type)

Incoming

public
PaddingFrame(int
the number of padding frames that should be written to the buffer. Each frame is one byte long.
size
)

Outgoing

Method Summary

Modifier and TypeMethod and Description
public void
encode(ByteBuffer buffer)

Implements abstract jdk.internal.net.http.quic.frames.QuicFrame.encode.

Encode this QUIC Frame into given ByteBuffer

public boolean
isAckEliciting()

Overrides jdk.internal.net.http.quic.frames.QuicFrame.isAckEliciting.

Returns true if this frame is ACK-eliciting.

public int
size()

Implements abstract jdk.internal.net.http.quic.frames.QuicFrame.size.

The number of PADDING frames represented

public String
toString()

Overrides jdk.internal.net.http.quic.frames.QuicFrame.toString.

Returns a string representation of the object.

Inherited from jdk.internal.net.http.quic.frames.QuicFrame:
decodedecodeVLFielddecodeVLFieldAsIntencodeVLFieldframeClassOfframeTypeframeTypeOfgetTypeFieldgetVLFieldLengthForisValidInputByteBufferrequireVLRangerequireVLRangevalidateRemainingLength

Field Detail

sizeback to summary
private final int size

Constructor Detail

PaddingFrameback to summary
pack-priv PaddingFrame(ByteBuffer buffer, int type) throws QuicTransportException

Incoming

PaddingFrameback to summary
public PaddingFrame(int size)

Outgoing

Parameters
size:int

the number of padding frames that should be written to the buffer. Each frame is one byte long.

Method Detail

encodeback to summary
public void encode(ByteBuffer buffer)

Implements abstract jdk.internal.net.http.quic.frames.QuicFrame.encode.

Doc from jdk.internal.net.http.quic.frames.QuicFrame.encode.

Encode this QUIC Frame into given ByteBuffer

Annotations
@Override
isAckElicitingback to summary
public boolean isAckEliciting()

Overrides jdk.internal.net.http.quic.frames.QuicFrame.isAckEliciting.

Doc from jdk.internal.net.http.quic.frames.QuicFrame.isAckEliciting.

Returns true if this frame is ACK-eliciting. A frame is ACK-eliciting if it is anything other than QuicFrame#ACK, QuicFrame#PADDING or QuicFrame#CONNECTION_CLOSE (or its variant).

Annotations
@Override
sizeback to summary
public int size()

Implements abstract jdk.internal.net.http.quic.frames.QuicFrame.size.

The number of PADDING frames represented

Annotations
@Override
toStringback to summary
public String toString()

Overrides jdk.internal.net.http.quic.frames.QuicFrame.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