@Test public void flattenHeaders_MultipleValuesGiven_ShouldPassHeader() { Map<String, List<String>> listHeaders = new HashMap<>(); List<String> headerValues = new ArrayList<>(); headerValues.add("a_v0"); headerValues.add("a_v1"); listHeaders.put("a_k", headerValues); Map<String, String> flattenedHeaders = flattenHeaders(listHeaders); assertEquals(ImmutableMap.of("a_k", "a_v0,a_v1"), flattenedHeaders); }
public static Map<String, String> flattenHeaders(Map<String, List<String>> headers) { return flattenHeaders(headers, headerName -> true); }
HeaderUtils { public static Map<String, String> flattenHeaders(Map<String, List<String>> headers) { return flattenHeaders(headers, headerName -> true); } }
HeaderUtils { public static Map<String, String> flattenHeaders(Map<String, List<String>> headers) { return flattenHeaders(headers, headerName -> true); } private  HeaderUtils(); }
HeaderUtils { public static Map<String, String> flattenHeaders(Map<String, List<String>> headers) { return flattenHeaders(headers, headerName -> true); } private  HeaderUtils(); static Map<String, String> flattenHeaders(Map<String, List<String>> headers); static Map<String, String> flattenHeaders(Map<String, List<String>> headers,
			Predicate<String> headerNameFilter); static Map<String, List<String>> expandHeaders(Map<String, String> headers); }
HeaderUtils { public static Map<String, String> flattenHeaders(Map<String, List<String>> headers) { return flattenHeaders(headers, headerName -> true); } private  HeaderUtils(); static Map<String, String> flattenHeaders(Map<String, List<String>> headers); static Map<String, String> flattenHeaders(Map<String, List<String>> headers,
			Predicate<String> headerNameFilter); static Map<String, List<String>> expandHeaders(Map<String, String> headers);  }