APIdia Launch Partner
Top Description Methods
jdk.internal.net.http.quic.packets

public Interface VersionNegotiationPacket

extends LongHeaderPacket
Known Direct Implementers
jdk.internal.net.http.quic.packets.QuicPacketDecoder.IncomingVersionNegotiationPacket, jdk.internal.net.http.quic.packets.QuicPacketEncoder.OutgoingVersionNegotiationPacket

This class models Quic Version Negotiation Packets, as defined by RFC 9000, Section 17.2.1:
A Version Negotiation packet is inherently not version-specific.
   Upon receipt by a client, it will be identified as a Version
   Negotiation packet based on the Version field having a value of 0.

   The Version Negotiation packet is a response to a client packet that
   contains a version that is not supported by the server, and is only
   sent by servers.

   The layout of a Version Negotiation packet is:

   Version Negotiation Packet {
     Header Form (1) = 1,
     Unused (7),
     Version (32) = 0,
     Destination Connection ID Length (8),
     Destination Connection ID (0..2040),
     Source Connection ID Length (8),
     Source Connection ID (0..2040),
     Supported Version (32) ...,
   }
External Specification
https://www.rfc-editor.org/info/rfc9000

Method Summary

Modifier and TypeMethod and Description
public default QuicPacket.PacketNumberSpace
numberSpace()

Implements jdk.internal.net.http.quic.packets.QuicPacket.numberSpace.

This packet type is not numbered: returns PacketNumberSpace#NONE always.

public default long

Returns:

-1L
packetNumber
()

Overrides default jdk.internal.net.http.quic.packets.QuicPacket.packetNumber.

This packet type is not numbered: returns -1L always.

public default QuicPacket.PacketType
public int[]
public default int
version()

Implements jdk.internal.net.http.quic.packets.LongHeaderPacket.version.

Returns the Quic version of the packet.

Inherited from jdk.internal.net.http.quic.packets.LongHeaderPacket:
headersTypesourceId

Method Detail

numberSpaceback to summary
public default QuicPacket.PacketNumberSpace numberSpace()

Implements jdk.internal.net.http.quic.packets.QuicPacket.numberSpace.

This packet type is not numbered: returns PacketNumberSpace#NONE always.

Returns:QuicPacket.PacketNumberSpace

PacketNumberSpace#NONE

Annotations
@Override
packetNumberback to summary
public default long packetNumber()

Overrides default jdk.internal.net.http.quic.packets.QuicPacket.packetNumber.

This packet type is not numbered: returns -1L always.

Returns:long

-1L

Annotations
@Override
packetTypeback to summary
public default QuicPacket.PacketType packetType()

Implements jdk.internal.net.http.quic.packets.QuicPacket.packetType.

Doc from jdk.internal.net.http.quic.packets.QuicPacket.packetType.

Returns this packet's type.

Annotations
@Override
supportedVersionsback to summary
public int[] supportedVersions()
versionback to summary
public default int version()

Implements jdk.internal.net.http.quic.packets.LongHeaderPacket.version.

Doc from jdk.internal.net.http.quic.packets.LongHeaderPacket.version.

Returns the Quic version of the packet.

Annotations
@Override