Enum H2Param

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<H2Param>

    public enum H2Param
    extends java.lang.Enum<H2Param>
    HTTP/2 protocol parameters.
    Since:
    5.0
    • 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
    • Constructor Detail

      • H2Param

        private H2Param​(int code)
    • 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 name
        java.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 name
        java.lang.NullPointerException - if the argument is null
      • toString

        public static java.lang.String toString​(int code)