List of usage examples for org.springframework.web.reactive HandlerMapping PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE
String PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE
To view the source code for org.springframework.web.reactive HandlerMapping PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE.
Click Source Link
From source file:org.springframework.web.reactive.result.HandlerResultHandlerSupport.java
@SuppressWarnings("unchecked") private List<MediaType> getProducibleTypes(ServerWebExchange exchange, Supplier<List<MediaType>> producibleTypesSupplier) { Set<MediaType> mediaTypes = exchange.getAttribute(HandlerMapping.PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE); return (mediaTypes != null ? new ArrayList<>(mediaTypes) : producibleTypesSupplier.get()); }