public static HeaderTemplate append ( HeaderTemplate headerTemplate , Iterable < String > values ) { Set < String > headerValues = new LinkedHashSet <> ( headerTemplate . getValues ( ) ) ; headerValues . addAll ( StreamSupport . stream ( values . spliterator ( ) , false ) . filter ( Util :: isNotBlank ) . collect ( Collectors . toSet ( ) ) ) ; return create ( headerTemplate . getName ( ) , headerValues ) ; }
Append values to a Header Template .