Top Description Constructors Methods
org.eclipse.jetty.http3

public Class Grease

extends Object
Class Inheritance
Imports
java.util.concurrent.ThreadLocalRandom

A class to support GREASE (RFC 8701) in HTTP/3.

HTTP/3 GREASE values have the form 0x1F * N + 0x21 with non negative values of N.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static long
generateGreaseValue()

Returns: a random grease value as defined by HTTP/3

public static boolean
isGreaseValue(long
the value to test
value
)

Returns: whether the value is a GREASE value as defined by HTTP/3

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Greaseback to summary
private Grease()

Method Detail

generateGreaseValueback to summary
public static long generateGreaseValue()
Returns:long

a random grease value as defined by HTTP/3

isGreaseValueback to summary
public static boolean isGreaseValue(long value)
Parameters
value:long

the value to test

Returns:boolean

whether the value is a GREASE value as defined by HTTP/3