|
|
|
@ -44,6 +44,7 @@ import org.springframework.lang.Nullable; |
|
|
|
* @author Rossen Stoyanchev |
|
|
|
* @author Rossen Stoyanchev |
|
|
|
* @author Dimitrios Liapis |
|
|
|
* @author Dimitrios Liapis |
|
|
|
* @author Brian Clozel |
|
|
|
* @author Brian Clozel |
|
|
|
|
|
|
|
* @author Sam Brannen |
|
|
|
* @since 4.0 |
|
|
|
* @since 4.0 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public abstract class MimeTypeUtils { |
|
|
|
public abstract class MimeTypeUtils { |
|
|
|
@ -273,10 +274,11 @@ public abstract class MimeTypeUtils { |
|
|
|
return Collections.emptyList(); |
|
|
|
return Collections.emptyList(); |
|
|
|
} |
|
|
|
} |
|
|
|
return tokenize(mimeTypes).stream() |
|
|
|
return tokenize(mimeTypes).stream() |
|
|
|
.map(MimeTypeUtils::parseMimeType).collect(Collectors.toList()); |
|
|
|
.filter(StringUtils::hasText) |
|
|
|
|
|
|
|
.map(MimeTypeUtils::parseMimeType) |
|
|
|
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Tokenize the given comma-separated string of {@code MimeType} objects |
|
|
|
* Tokenize the given comma-separated string of {@code MimeType} objects |
|
|
|
* into a {@code List<String>}. Unlike simple tokenization by ",", this |
|
|
|
* into a {@code List<String>}. Unlike simple tokenization by ",", this |
|
|
|
|