public interface ContentNegotiationStrategy
| Modifier and Type | Method and Description |
|---|---|
List<org.springframework.http.MediaType> |
resolveMediaTypes(org.springframework.web.context.request.NativeWebRequest webRequest)
Resolve the given request to a list of media types.
|
List<org.springframework.http.MediaType> resolveMediaTypes(org.springframework.web.context.request.NativeWebRequest webRequest) throws org.springframework.web.HttpMediaTypeNotAcceptableException
webRequest - the current requestnull)org.springframework.web.HttpMediaTypeNotAcceptableException - if the requested media
types cannot be parsedCopyright © 2006–2018 TinyGroup. All rights reserved.