@Test(expected = IllegalArgumentException.class) public void hasValueForVitamHeaderNullTest() { HttpHeaderHelper.hasValuesFor(null, null); }
public static boolean hasValuesFor(HttpHeaders headers, VitamHttpHeader vitamHeader) { ParametersChecker.checkParameter("Header name cannot be null", vitamHeader); ParametersChecker.checkParameter("Headers cannot be null", headers); final List<String> values = headers.getRequestHeader(vitamHeader.getName()); return values != null && !values.isEmpty(); }
HttpHeaderHelper { public static boolean hasValuesFor(HttpHeaders headers, VitamHttpHeader vitamHeader) { ParametersChecker.checkParameter("Header name cannot be null", vitamHeader); ParametersChecker.checkParameter("Headers cannot be null", headers); final List<String> values = headers.getRequestHeader(vitamHeader.getName()); return values != null && !values.isEmpty(); } }
HttpHeaderHelper { public static boolean hasValuesFor(HttpHeaders headers, VitamHttpHeader vitamHeader) { ParametersChecker.checkParameter("Header name cannot be null", vitamHeader); ParametersChecker.checkParameter("Headers cannot be null", headers); final List<String> values = headers.getRequestHeader(vitamHeader.getName()); return values != null && !values.isEmpty(); } private  HttpHeaderHelper(); }
HttpHeaderHelper { public static boolean hasValuesFor(HttpHeaders headers, VitamHttpHeader vitamHeader) { ParametersChecker.checkParameter("Header name cannot be null", vitamHeader); ParametersChecker.checkParameter("Headers cannot be null", headers); final List<String> values = headers.getRequestHeader(vitamHeader.getName()); return values != null && !values.isEmpty(); } 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 boolean hasValuesFor(HttpHeaders headers, VitamHttpHeader vitamHeader) { ParametersChecker.checkParameter("Header name cannot be null", vitamHeader); ParametersChecker.checkParameter("Headers cannot be null", headers); final List<String> values = headers.getRequestHeader(vitamHeader.getName()); return values != null && !values.isEmpty(); } 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);  }