Enum H2Param

java.lang.Object
java.lang.Enum<H2Param>
org.apache.hc.core5.http2.config.H2Param
All Implemented Interfaces:
Serializable, Comparable<H2Param>

public enum H2Param extends Enum<H2Param>
HTTP/2 protocol parameters.
Since:
5.0
  • Enum Constant Details

    • 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 Details

    • code

      int code
    • LOOKUP_TABLE

      private static final H2Param[] LOOKUP_TABLE
  • Constructor Details

    • H2Param

      private H2Param(int code)
  • Method Details

    • values

      public static H2Param[] 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

      public static H2Param valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public static String toString(int code)