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