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

public final Class NewTokenFrame

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

A NEW_TOKEN frame
External Specification
https://www.rfc-editor.org/info/rfc9000

Field Summary

Modifier and TypeField and Description
private final byte[]
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
NewTokenFrame(ByteBuffer buffer, int type)

Incoming NEW_TOKEN frame

public
NewTokenFrame(final ByteBuffer tokenBuf)

Outgoing NEW_TOKEN frame whose token is the given ByteBuffer (position to limit)

Method Summary

Modifier and TypeMethod and Description
public void
encode(final 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.

public byte[]
Inherited from jdk.internal.net.http.quic.frames.QuicFrame:
decodedecodeVLFielddecodeVLFieldAsIntencodeVLFieldframeClassOfframeTypeframeTypeOfgetTypeFieldgetVLFieldLengthForisAckElicitingisValidInputByteBufferrequireVLRangerequireVLRangetoStringvalidateRemainingLength

Field Detail

tokenback to summary
private final byte[] token

Constructor Detail

NewTokenFrameback to summary
pack-priv NewTokenFrame(ByteBuffer buffer, int type) throws QuicTransportException

Incoming NEW_TOKEN frame

Exceptions
QuicTransportException:
if the frame was malformed
NewTokenFrameback to summary
public NewTokenFrame(final ByteBuffer tokenBuf)

Outgoing NEW_TOKEN frame whose token is the given ByteBuffer (position to limit)

Method Detail

encodeback to summary
public void encode(final 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
tokenback to summary
public byte[] token()