@Test public void extractIntegerHeader_withNonsenseStringValue_shouldReturnNull() throws Exception { response.addHeader(AD_TIMEOUT.getKey(), "llama!!guy"); assertThat(HeaderUtils.extractIntegerHeader(response, AD_TIMEOUT)).isNull(); }
public static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader) { return formatIntHeader(extractHeader(headers, responseHeader)); }
HeaderUtils { public static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader) { return formatIntHeader(extractHeader(headers, responseHeader)); } }
HeaderUtils { public static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader) { return formatIntHeader(extractHeader(headers, responseHeader)); }  }
HeaderUtils { public static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader) { return formatIntHeader(extractHeader(headers, responseHeader)); }  @Nullable static String extractHeader(Map<String, String> headers, ResponseHeader responseHeader); static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader); static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue); static String extractHeader(HttpResponse response, ResponseHeader responseHeader); static boolean extractBooleanHeader(HttpResponse response, ResponseHeader responseHeader, boolean defaultValue); static Integer extractIntegerHeader(HttpResponse response, ResponseHeader responseHeader); static int extractIntHeader(HttpResponse response, ResponseHeader responseHeader, int defaultValue); }
HeaderUtils { public static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader) { return formatIntHeader(extractHeader(headers, responseHeader)); }  @Nullable static String extractHeader(Map<String, String> headers, ResponseHeader responseHeader); static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader); static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue); static String extractHeader(HttpResponse response, ResponseHeader responseHeader); static boolean extractBooleanHeader(HttpResponse response, ResponseHeader responseHeader, boolean defaultValue); static Integer extractIntegerHeader(HttpResponse response, ResponseHeader responseHeader); static int extractIntHeader(HttpResponse response, ResponseHeader responseHeader, int defaultValue);  }