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

public final Class PathChallengeFrame

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

A PATH_CHALLENGE Frame
External Specification
https://www.rfc-editor.org/info/rfc9000

Field Summary

Modifier and TypeField and Description
private final ByteBuffer
public static 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
PathChallengeFrame(ByteBuffer buffer, int type)

Incoming PATH_CHALLENGE frame returned by QuicFrame.decode()

public
PathChallengeFrame(ByteBuffer data)

Outgoing PATH_CHALLENGE frame

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
data()

public void
encode(ByteBuffer buffer)

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

Encode this QUIC Frame into given ByteBuffer

public int
size()

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

Returns the minimum number of bytes needed to encode this frame.

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

Field Detail

databack to summary
private final ByteBuffer data
LENGTHback to summary
public static final int LENGTH

Constructor Detail

PathChallengeFrameback to summary
pack-priv PathChallengeFrame(ByteBuffer buffer, int type) throws QuicTransportException

Incoming PATH_CHALLENGE frame returned by QuicFrame.decode()

Exceptions
QuicTransportException:
if the frame was malformed
PathChallengeFrameback to summary
public PathChallengeFrame(ByteBuffer data)

Outgoing PATH_CHALLENGE frame

Method Detail

databack to summary
public ByteBuffer data()
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
sizeback to summary
public int size()

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

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

Returns the minimum number of bytes needed to encode this frame.

Annotations
@Override