private MediaType getContentType(@Nullable MediaType contentType) { if (contentType == null || contentType.isWildcardType() || contentType.isWildcardSubtype()) { contentType = getDefaultContentType(); } Assert.notNull(contentType, "Could not select Content-Type. " + "Please specify one through the 'defaultContentType' property."); return contentType; }
private MediaType getContentType(@Nullable MediaType contentType) { if (contentType == null || contentType.isWildcardType() || contentType.isWildcardSubtype()) { contentType = getDefaultContentType(); } Assert.notNull(contentType, "Could not select Content-Type. " + "Please specify one through the 'defaultContentType' property."); return contentType; }
private MediaType getContentType(@Nullable MediaType contentType) { if (contentType == null || contentType.isWildcardType() || contentType.isWildcardSubtype()) { contentType = getDefaultContentType(); } Assert.notNull(contentType, "Could not select Content-Type. " + "Please specify one through the 'defaultContentType' property."); return contentType; }
private MediaType getContentType(@Nullable MediaType contentType) { if (contentType == null || contentType.isWildcardType() || contentType.isWildcardSubtype()) { contentType = getDefaultContentType(); } Assert.notNull(contentType, "Could not select Content-Type. " + "Please specify one through the 'defaultContentType' property."); return contentType; }