Package org.apache.hc.core5.http2.config
Enum H2Param
- All Implemented Interfaces:
Serializable
,Comparable<H2Param>
HTTP/2 protocol parameters.
- Since:
- 5.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
static String
toString
(int code) static H2Param
valueOf
(int code) Returns the enum constant of this type with the specified name.static H2Param
Returns the enum constant of this type with the specified name.static H2Param[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HEADER_TABLE_SIZE
-
ENABLE_PUSH
-
MAX_CONCURRENT_STREAMS
-
INITIAL_WINDOW_SIZE
-
MAX_FRAME_SIZE
-
MAX_HEADER_LIST_SIZE
-
-
Field Details
-
code
int code -
LOOKUP_TABLE
-
-
Constructor Details
-
H2Param
private H2Param(int code)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
code
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
-