Class CombinedHttpHeaders

All Implemented Interfaces:
Iterable<Map.Entry<String,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.

  • Constructor Details

  • Method Details

    • containsValue

      public boolean containsValue(CharSequence name, 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.