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