/** * Determine whether a given response has a formdata content-type. * * @return Whether the content-type of the response (defined in the Content-Type header) is a FORM_DATA type. */ public static boolean isFormDataContentType(final Response response) { return isFormDataContentType(response.getContentType().orElse(null)); }
/** * @return Whether the content-type of this response (defined in the Content-Type header) is a JSON type. */ public static boolean isJsonContentType(final Response response) { return isJsonContentType(response.getContentType().orElse(null)); }
final ApiOperation apiOperation) { final Optional<String> requestHeader = response.getContentType(); if (!requestHeader.isPresent()) { return ValidationReport.empty();
if (response.getContentType().isPresent()) { log.info("Validation of '{}' not supported. Response body not validated.", response.getContentType().get());