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

public Interface LongHeaderPacket

extends QuicPacket
Known Direct Subinterfaces
jdk.internal.net.http.quic.packets.RetryPacket, jdk.internal.net.http.quic.packets.VersionNegotiationPacket, jdk.internal.net.http.quic.packets.ZeroRttPacket, jdk.internal.net.http.quic.packets.HandshakePacket, jdk.internal.net.http.quic.packets.InitialPacket
Known Direct Implementers
jdk.internal.net.http.quic.packets.QuicPacketDecoder.IncomingLongHeaderPacket, jdk.internal.net.http.quic.packets.QuicPacketEncoder.OutgoingLongHeaderPacket
Imports
jdk.internal.net.http.quic.QuicConnectionId

This class models Quic Long Header Packets, as defined by RFC 8999, Section 5.1:
Long Header Packet {
      Header Form (1) = 1,
      Version-Specific Bits (7),
      Version (32),
      Destination Connection ID Length (8),
      Destination Connection ID (0..2040),
      Source Connection ID Length (8),
      Source Connection ID (0..2040),
      Version-Specific Data (..),
   }

Subclasses of this class may be used to model packets exchanged with either Quic Version 1 or Quic Version 2.

External Specification
https://www.rfc-editor.org/info/rfc8999, https://www.rfc-editor.org/info/rfc9000, https://www.rfc-editor.org/info/rfc9369

Method Summary

Modifier and TypeMethod and Description
public default QuicPacket.HeadersType
public QuicConnectionId

Returns:

the packet's source connection ID
sourceId
()

Returns the packet's source connection ID.

public int

Returns:

the Quic version of the packet
version
()

Returns the Quic version of the packet.

Inherited from jdk.internal.net.http.quic.packets.QuicPacket:
destinationIdframeshasLengthisAckElicitinglengthnumberSpacepacketNumberpacketTypepayloadSizeprettyPrintsize

Method Detail

headersTypeback to summary
public default QuicPacket.HeadersType headersType()

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

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

This packet header's type. Either SHORT or LONG.

Annotations
@Override
sourceIdback to summary
public QuicConnectionId sourceId()

Returns the packet's source connection ID.

Returns:QuicConnectionId

the packet's source connection ID

versionback to summary
public int version()

Returns the Quic version of the packet.

Returns:int

the Quic version of the packet