Package org.apache.hc.core5.http2.config
Enum H2Param
- java.lang.Object
-
- java.lang.Enum<H2Param>
-
- org.apache.hc.core5.http2.config.H2Param
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENABLE_PUSH
HEADER_TABLE_SIZE
INITIAL_WINDOW_SIZE
MAX_CONCURRENT_STREAMS
MAX_FRAME_SIZE
MAX_HEADER_LIST_SIZE
-
Field Summary
Fields Modifier and Type Field Description (package private) int
code
private static H2Param[]
LOOKUP_TABLE
-
Constructor Summary
Constructors Modifier Constructor Description private
H2Param(int code)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
static java.lang.String
toString(int code)
static H2Param
valueOf(int code)
Returns the enum constant of this type with the specified name.static H2Param
valueOf(java.lang.String name)
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 Detail
-
HEADER_TABLE_SIZE
public static final H2Param HEADER_TABLE_SIZE
-
ENABLE_PUSH
public static final H2Param ENABLE_PUSH
-
MAX_CONCURRENT_STREAMS
public static final H2Param MAX_CONCURRENT_STREAMS
-
INITIAL_WINDOW_SIZE
public static final H2Param INITIAL_WINDOW_SIZE
-
MAX_FRAME_SIZE
public static final H2Param MAX_FRAME_SIZE
-
MAX_HEADER_LIST_SIZE
public static final H2Param MAX_HEADER_LIST_SIZE
-
-
Field Detail
-
code
int code
-
LOOKUP_TABLE
private static final H2Param[] LOOKUP_TABLE
-
-
Method Detail
-
values
public static H2Param[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (H2Param c : H2Param.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static H2Param valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCode
public int getCode()
-
valueOf
public static H2Param valueOf(int code)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public static java.lang.String toString(int code)
-
-