APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.net.http.http3.streams

public final Class Http3Streams

extends Object
Class Inheritance
Imports
java.util.EnumSet, .Optional, java.util.stream.Collectors, .Stream, jdk.internal.net.http.common.Logger, jdk.internal.net.http.http3.Http3Error, jdk.internal.net.http.quic.streams.QuicReceiverStream, .QuicSenderStream, .QuicStream

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
debugErrorCode(Logger
the logger to log through
logger
,
QuicStream
a quic stream that may have errors
stream
,
String
a name for the stream, e.g "Control stream", or null.
name
)

If the stream has errors, prints a message recording the error state of the stream through the given logger.

public static Optional<String>

Returns:

an optional string that represents the error state of the stream, or Optional.empty() if no error code has been received or sent
errorCodeAsString
(QuicStream
a quic stream that may have errors
stream
)

Returns an optional string that represents the error state of the stream, or Optional.empty() if no error code has been received or sent.

public static boolean
isReserved(long streamType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONTROL_STREAM_CODEback to summary
public static final int CONTROL_STREAM_CODE
PUSH_STREAM_CODEback to summary
public static final int PUSH_STREAM_CODE
QPACK_DECODER_STREAM_CODEback to summary
public static final int QPACK_DECODER_STREAM_CODE
QPACK_ENCODER_STREAM_CODEback to summary
public static final int QPACK_ENCODER_STREAM_CODE

Constructor Detail

Http3Streamsback to summary
private Http3Streams()

Method Detail

debugErrorCodeback to summary
public static void debugErrorCode(Logger logger, QuicStream stream, String name)

If the stream has errors, prints a message recording the error state of the stream through the given logger. The message is of the form: <name> <stream-id>: <error-state>. If the given name is null or empty, "Stream" is substituted to <name>.

Parameters
logger:Logger

the logger to log through

stream:QuicStream

a quic stream that may have errors

name:String

a name for the stream, e.g "Control stream", or null.

errorCodeAsStringback to summary
public static Optional<String> errorCodeAsString(QuicStream stream)

Returns an optional string that represents the error state of the stream, or Optional.empty() if no error code has been received or sent.

Parameters
stream:QuicStream

a quic stream that may have errors

Returns:Optional<String>

an optional string that represents the error state of the stream, or Optional.empty() if no error code has been received or sent

isReservedback to summary
public static boolean isReserved(long streamType)
jdk.internal.net.http.http3.streams back to summary

public final Enum Http3Streams.StreamType

extends Enum<Http3Streams.StreamType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
public static final Http3Streams.StreamType
public static final Http3Streams.StreamType
public static final Http3Streams.StreamType
public static final Http3Streams.StreamType

Constructor Summary

AccessConstructor and Description
private
StreamType(int code)

Method Summary

Modifier and TypeMethod and Description
public final int
code()

public static Optional<Http3Streams.StreamType>
ofCode(long code)

public static Http3Streams.StreamType
public static Http3Streams.StreamType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

codeback to summary
pack-priv final int code
CONTROLback to summary
public static final Http3Streams.StreamType CONTROL
PUSHback to summary
public static final Http3Streams.StreamType PUSH
QPACK_DECODERback to summary
public static final Http3Streams.StreamType QPACK_DECODER
QPACK_ENCODERback to summary
public static final Http3Streams.StreamType QPACK_ENCODER

Constructor Detail

StreamTypeback to summary
private StreamType(int code)

Method Detail

codeback to summary
public final int code()
ofCodeback to summary
public static Optional<Http3Streams.StreamType> ofCode(long code)
valueOfback to summary
public static Http3Streams.StreamType valueOf(String name)
valuesback to summary
public static Http3Streams.StreamType[] values()