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