@Test public void getHeaderValuesTest() { Mockito.when(httpHeadersMock.getRequestHeader(VitamHttpHeader.METHOD_OVERRIDE.getName())).thenReturn(Collections .singletonList("get")); final List<String> values = HttpHeaderHelper.getHeaderValues(httpHeadersMock, VitamHttpHeader.METHOD_OVERRIDE); assertNotNull(values); assertEquals(1, values.size()); assertEquals("get", values.get(0)); }
public static List<String> getHeaderValues(HttpHeaders headers, VitamHttpHeader name) { ParametersChecker.checkParameter("Name cannot be null", name); return getHeaderValues(headers, name.getName()); }
HttpHeaderHelper { public static List<String> getHeaderValues(HttpHeaders headers, VitamHttpHeader name) { ParametersChecker.checkParameter("Name cannot be null", name); return getHeaderValues(headers, name.getName()); } }
HttpHeaderHelper { public static List<String> getHeaderValues(HttpHeaders headers, VitamHttpHeader name) { ParametersChecker.checkParameter("Name cannot be null", name); return getHeaderValues(headers, name.getName()); } private  HttpHeaderHelper(); }
HttpHeaderHelper { public static List<String> getHeaderValues(HttpHeaders headers, VitamHttpHeader name) { ParametersChecker.checkParameter("Name cannot be null", name); return getHeaderValues(headers, name.getName()); } private  HttpHeaderHelper(); static List<String> getHeaderValues(HttpHeaders headers, VitamHttpHeader name); static List<String> getHeaderValues(HttpHeaders headers, String name); static boolean hasValuesFor(HttpHeaders headers, VitamHttpHeader vitamHeader); static void checkVitamHeaders(HttpHeaders headers); static void checkVitamHeadersMap(MultivaluedMap<String, String> requestHeaders); static void validateHeaderValue(HttpHeaders headers, MultivaluedHashMap<String, String> wantedHeaders); }
HttpHeaderHelper { public static List<String> getHeaderValues(HttpHeaders headers, VitamHttpHeader name) { ParametersChecker.checkParameter("Name cannot be null", name); return getHeaderValues(headers, name.getName()); } private  HttpHeaderHelper(); static List<String> getHeaderValues(HttpHeaders headers, VitamHttpHeader name); static List<String> getHeaderValues(HttpHeaders headers, String name); static boolean hasValuesFor(HttpHeaders headers, VitamHttpHeader vitamHeader); static void checkVitamHeaders(HttpHeaders headers); static void checkVitamHeadersMap(MultivaluedMap<String, String> requestHeaders); static void validateHeaderValue(HttpHeaders headers, MultivaluedHashMap<String, String> wantedHeaders);  }