@FunctionalInterface public interface ContentNegotiationStrategy
Modifier and Type | Method and Description |
---|---|
List<MediaType> |
resolveMediaTypes(NativeWebRequest webRequest)
Resolve the given request to a list of media types.
|
List<MediaType> resolveMediaTypes(NativeWebRequest webRequest) throws HttpMediaTypeNotAcceptableException
webRequest
- the current requestnull
)HttpMediaTypeNotAcceptableException
- if the requested media
types cannot be parsed