Enum HeadersMode

    • Enum Constant Detail

      • SPDY_SYN_STREAM

        public static final HeadersMode SPDY_SYN_STREAM
      • SPDY_REPLY

        public static final HeadersMode SPDY_REPLY
      • SPDY_HEADERS

        public static final HeadersMode SPDY_HEADERS
      • HTTP_20_HEADERS

        public static final HeadersMode HTTP_20_HEADERS
    • Method Detail

      • values

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

        public static HeadersMode 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
      • failIfStreamAbsent

        public boolean failIfStreamAbsent()
        Returns true if it is an error these headers to create a new stream.
      • failIfStreamPresent

        public boolean failIfStreamPresent()
        Returns true if it is an error these headers to update an existing stream.
      • failIfHeadersAbsent

        public boolean failIfHeadersAbsent()
        Returns true if it is an error these headers to be the initial headers of a response.
      • failIfHeadersPresent

        public boolean failIfHeadersPresent()
        Returns true if it is an error these headers to be update existing headers of a response.