Class CombinedHttpHeaders

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.Map.Entry<java.lang.String,​java.lang.String>>

    public class CombinedHttpHeaders
    extends DefaultHttpHeaders
    Will add multiple values for the same header as single header with a comma separated list of values.

    Please refer to section RFC 7230, 3.2.2.

    • Method Detail

      • containsValue

        public boolean containsValue​(java.lang.CharSequence name,
                                     java.lang.CharSequence value,
                                     boolean ignoreCase)
        Description copied from class: HttpHeaders
        Returns true if a header with the name and value exists, false otherwise. This also handles multiple values that are separated with a ,.

        If ignoreCase is true then a case insensitive compare is done on the value.

        Overrides:
        containsValue in class HttpHeaders
        Parameters:
        name - the name of the header to find
        value - the value of the header to find
        ignoreCase - true then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.