| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Http3FrameType.
A class to hold type constants |
| Modifier and Type | Field and Description |
|---|---|
| public static final Http3FrameType | CANCEL_PUSH
Used to identify an HTTP/3 CANCEL_PUSH frame |
| public static final Http3FrameType | DATA
Used to identify an HTTP/3 DATA frame |
| public static final Http3FrameType | GOAWAY
Used to identify an HTTP/3 GOAWAY frame |
| public static final Http3FrameType | HEADERS
Used to identify an HTTP/3 HEADERS frame |
| public static final Http3FrameType | MAX_PUSH_ID
Used to identify an HTTP/3 MAX_PUSH_ID_FRAME frame |
| private final long | |
| public static final Http3FrameType | PUSH_PROMISE
Used to identify an HTTP/3 PUSH_PROMISE frame |
| public static final Http3FrameType | SETTINGS
Used to identify an HTTP/3 SETTINGS frame |
| private final int | |
| public static final Http3FrameType | UNKNOWN
Used to identify an HTTP/3 frame whose type is unknown |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: a string representation of the given type, suited for inclusion in log messages, exceptions, etc...an HTTP/3 frame type identifier read from an HTTP/3 frame type)Returns a string representation of the given type, suited for inclusion in log messages, exceptions, etc... |
| public static Http3FrameType | Returns: theHttp3FrameType corresponding to the given
type, or UNKNOWN if no corresponding
Http3FrameType instance is foundan HTTP/3 frame type identifier read from an HTTP/3 frame type)Returns the |
| public int | |
| public static boolean | Returns: whether this frame type is illegalthe frame type type)Returns whether this frame type is illegal. |
| public static boolean | Returns: true if the given type matches the0x21 + 0x1f * N
patternan HTTP/3 frame type identifier read from an HTTP/3 frame type)Whether the given type is one of the reserved frame types defined by HTTP/3. |
| public long | Returns: the maximum length a frame of this type can takeReturns the maximum length a frame of this type can take. |
| public long | |
| public static Http3FrameType | |
| public static Http3FrameType[] |
| CANCEL_PUSH | back to summary |
|---|---|
| public static final Http3FrameType CANCEL_PUSH Used to identify an HTTP/3 CANCEL_PUSH frame | |
| DATA | back to summary |
|---|---|
| public static final Http3FrameType DATA Used to identify an HTTP/3 DATA frame | |
| GOAWAY | back to summary |
|---|---|
| public static final Http3FrameType GOAWAY Used to identify an HTTP/3 GOAWAY frame | |
| HEADERS | back to summary |
|---|---|
| public static final Http3FrameType HEADERS Used to identify an HTTP/3 HEADERS frame | |
| MAX_PUSH_ID | back to summary |
|---|---|
| public static final Http3FrameType MAX_PUSH_ID Used to identify an HTTP/3 MAX_PUSH_ID_FRAME frame | |
| maxLength | back to summary |
|---|---|
| private final long maxLength | |
| PUSH_PROMISE | back to summary |
|---|---|
| public static final Http3FrameType PUSH_PROMISE Used to identify an HTTP/3 PUSH_PROMISE frame | |
| SETTINGS | back to summary |
|---|---|
| public static final Http3FrameType SETTINGS Used to identify an HTTP/3 SETTINGS frame | |
| type | back to summary |
|---|---|
| private final int type | |
| UNKNOWN | back to summary |
|---|---|
| public static final Http3FrameType UNKNOWN Used to identify an HTTP/3 frame whose type is unknown | |
| Http3FrameType | back to summary |
|---|---|
| private Http3FrameType(int type, long maxLength) | |
| asString | back to summary |
|---|---|
| public static String asString(long type) Returns a string representation of the given type, suited for inclusion in log messages, exceptions, etc...
| |
| forType | back to summary |
|---|---|
| public static Http3FrameType forType(long type) Returns the
| |
| intType | back to summary |
|---|---|
| public int intType() Returns the HTTP/3 frame type, as an int. API Note HTTP/3 defines frames type as variable length integers in the range [0, 2^62-1]. However, the few standard frame types registered for HTTP/3 and modeled by this enum class can be coded as an int. This method provides a convenient way to access the frame type as an int, which avoids having to cast when using the value in switch statements.
| |
| isIllegalType | back to summary |
|---|---|
| public static boolean isIllegalType(long type) Returns whether this frame type is illegal. This corresponds to HTTP/2 frame types that have no equivalent in HTTP/3.
| |
| isReservedType | back to summary |
|---|---|
| public static boolean isReservedType(long type) Whether the given type is one of the reserved frame
types defined by HTTP/3. For any non-negative integer N:
| |
| maxLength | back to summary |
|---|---|
| public long maxLength() Returns the maximum length a frame of this type can take.
| |
| type | back to summary |
|---|---|
| public long type() Returns the frame type, as defined by HTTP/3.
| |
| valueOf | back to summary |
|---|---|
| public static Http3FrameType valueOf(String name) | |
| values | back to summary |
|---|---|
| public static Http3FrameType[] values() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final long | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| CANCEL_PUSH_FRAME | back to summary |
|---|---|
| public static final int CANCEL_PUSH_FRAME | |
| DATA_FRAME | back to summary |
|---|---|
| public static final int DATA_FRAME | |
| GOAWAY_FRAME | back to summary |
|---|---|
| public static final int GOAWAY_FRAME | |
| HEADERS_FRAME | back to summary |
|---|---|
| public static final int HEADERS_FRAME | |
| MAX_PUSH_ID_FRAME | back to summary |
|---|---|
| public static final int MAX_PUSH_ID_FRAME | |
| MAX_SETTINGS_LENGTH | back to summary |
|---|---|
| public static final long MAX_SETTINGS_LENGTH | |
| PUSH_PROMISE_FRAME | back to summary |
|---|---|
| public static final int PUSH_PROMISE_FRAME | |
| SETTINGS_FRAME | back to summary |
|---|---|
| public static final int SETTINGS_FRAME | |
| TYPE | back to summary |
|---|---|
| private TYPE() | |