public boolean addCSV(HttpHeader header, String... values) {
        QuotedCSV existing = null;
        for (HttpField f : this) {
            if (f.getHeader() == header) {
                if (existing == null)
                    existing = new QuotedCSV(false);
                existing.addValue(f.getValue());
            }
        }

        String value = addCSV(existing, values);
        if (value != null) {
            add(header, value);
            return true;
        }
        return false;
    }
public boolean addCSV ( HttpHeader header , String ... values ) { QuotedCSV existing = null ; for ( HttpField f : this ) { if ( f . getHeader ( ) == header ) { if ( existing == null ) existing = new QuotedCSV ( false ) ; existing . addValue ( f . getValue ( ) ) ; } } String value = addCSV ( existing , values ) ; if ( value != null ) { add ( header , value ) ; return true ; } return false ; }
Add comma separated values, but only if not already present.

@param header The header to add the value(s) to
@param values The value(s) to add
@return True if headers were modified