public class HeaderContentTypeResolver extends Object implements RequestedContentTypeResolver
MEDIA_TYPE_ALL_LIST| Constructor and Description |
|---|
HeaderContentTypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
resolveMediaTypes(ServerWebExchange exchange)
Resolve the given request to a list of requested media types.
|
public List<MediaType> resolveMediaTypes(ServerWebExchange exchange) throws NotAcceptableStatusException
RequestedContentTypeResolverresolveMediaTypes in interface RequestedContentTypeResolverexchange - the current exchangeRequestedContentTypeResolver.MEDIA_TYPE_ALL_LIST if none
were requested.NotAcceptableStatusException - if the requested media type is invalid