public interface RequestedContentTypeResolver
ServerWebExchange.
See RequestedContentTypeResolverBuilder to create a sequence of
strategies.
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<MediaType> |
MEDIA_TYPE_ALL_LIST
A singleton list with
MediaType.ALL that is returned from
resolveMediaTypes(org.springframework.web.server.ServerWebExchange) when no specific media types are requested. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MediaType> |
resolveMediaTypes(ServerWebExchange exchange)
Resolve the given request to a list of requested media types.
|
static final java.util.List<MediaType> MEDIA_TYPE_ALL_LIST
MediaType.ALL that is returned from
resolveMediaTypes(org.springframework.web.server.ServerWebExchange) when no specific media types are requested.java.util.List<MediaType> resolveMediaTypes(ServerWebExchange exchange)
exchange - the current exchangeMEDIA_TYPE_ALL_LIST if none
were requested.NotAcceptableStatusException - if the requested media type is invalid