Enum Http2Headers.PseudoHeaderName

    • Method Detail

      • values

        public static Http2Headers.PseudoHeaderName[] 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 (Http2Headers.PseudoHeaderName c : Http2Headers.PseudoHeaderName.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Http2Headers.PseudoHeaderName 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
      • hasPseudoHeaderFormat

        public static boolean hasPseudoHeaderFormat​(CharSequence headerName)
        Indicates whether the specified header follows the pseudo-header format (begins with ':' character)
        Returns:
        true if the header follow the pseudo-header format
      • isPseudoHeader

        public static boolean isPseudoHeader​(CharSequence header)
        Indicates whether the given header name is a valid HTTP/2 pseudo header.
      • isRequestOnly

        public boolean isRequestOnly()
        Indicates whether the pseudo-header is to be used in a request context.
        Returns:
        true if the pseudo-header is to be used in a request context