public class HeaderContentNegotiationStrategy extends Object implements ContentNegotiationStrategy
ContentNegotiationStrategy that checks the 'Accept' request header.| Constructor and Description | 
|---|
HeaderContentNegotiationStrategy()  | 
| Modifier and Type | Method and Description | 
|---|---|
List<MediaType> | 
resolveMediaTypes(NativeWebRequest request)
Resolve the given request to a list of media types. 
 | 
public List<MediaType> resolveMediaTypes(NativeWebRequest request) throws HttpMediaTypeNotAcceptableException
resolveMediaTypes in interface ContentNegotiationStrategyrequest - the current requestnull)HttpMediaTypeNotAcceptableException - if the 'Accept' header cannot be parsed