@Override public Set<String> keySet() { return this.headers.getFieldNamesCollection(); }
@Override public int size() { return this.headers.getFieldNamesCollection().size(); }
@Override public Set<String> keySet() { return this.headers.getFieldNamesCollection(); }
@Override public Collection<List<String>> values() { return this.headers.getFieldNamesCollection().stream() .map(this.headers::getValuesList).collect(Collectors.toList()); }
@Override public int size() { return this.headers.getFieldNamesCollection().size(); }
@Override public Collection<List<String>> values() { return this.headers.getFieldNamesCollection().stream() .map(this.headers::getValuesList).collect(Collectors.toList()); }
for (String name : responseFields.getFieldNamesCollection()) { for (String value : responseFields.getValuesCollection(name)) { headers.add(name, value);
for (String name : responseFields.getFieldNamesCollection()) { for (String value : responseFields.getValuesCollection(name)) { headers.add(name, value);
@Override public Collection<String> getHeaderNames() { final HttpFields fields = _fields; return fields.getFieldNamesCollection(); }
/** * Get enumeration of header _names. Returns an enumeration of strings representing the header * _names for this request. */ public Enumeration<String> getFieldNames() { return Collections.enumeration(getFieldNamesCollection()); }
/** * Get enumeration of header _names. Returns an enumeration of strings representing the header * _names for this request. */ public Enumeration<String> getFieldNames() { return Collections.enumeration(getFieldNamesCollection()); }
/** * Get enumeration of header _names. Returns an enumeration of strings representing the header * _names for this request. * @return an enumeration of field names */ public Enumeration<String> getFieldNames() { return Collections.enumeration(getFieldNamesCollection()); }
/** * Get enumeration of header _names. Returns an enumeration of strings representing the header * _names for this request. * @return an enumeration of field names */ public Enumeration<String> getFieldNames() { return Collections.enumeration(getFieldNamesCollection()); }
@Override public Collection<List<String>> values() { return this.headers.getFieldNamesCollection().stream() .map(this.headers::getValuesList).collect(Collectors.toList()); }
@Override public Collection<List<String>> values() { return this.headers.getFieldNamesCollection().stream() .map(this.headers::getValuesList).collect(Collectors.toList()); }
public Collection<String> getHeaderNames() { final HttpFields fields=_connection.getResponseFields(); return fields.getFieldNamesCollection(); }
public Collection<String> getHeaderNames() { final HttpFields fields=_connection.getResponseFields(); return fields.getFieldNamesCollection(); }
private Map<String, Collection<String>> getFieldsAsMap(HttpFields fields) { final Map<String, Collection<String>> result = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); for (String name : fields.getFieldNamesCollection()) { result.put(name, fields.getValuesCollection(name)); } return result; }
private static ListMultimap<HeaderName, String> toHeadersMap(HttpFields headers) { ImmutableListMultimap.Builder<HeaderName, String> builder = ImmutableListMultimap.builder(); for (String name : headers.getFieldNamesCollection()) { for (String value : headers.getValuesList(name)) { builder.put(HeaderName.of(name), value); } } return builder.build(); } }
private static ListMultimap<HeaderName, String> toHeadersMap(HttpFields headers) { ImmutableListMultimap.Builder<HeaderName, String> builder = ImmutableListMultimap.builder(); for (String name : headers.getFieldNamesCollection()) { for (String value : headers.getValuesList(name)) { builder.put(HeaderName.of(name), value); } } return builder.build(); } }