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