public class HeaderContentTypeResolver extends Object implements RequestedContentTypeResolver
RequestedContentTypeResolver that checks the 'Accept' request header.| 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 exchangeNotAcceptableStatusException - if the requested media types is invalid