public interface RequestedContentTypeResolver
ServerWebExchange
.Modifier and Type | Method and Description |
---|---|
List<org.springframework.http.MediaType> |
resolveMediaTypes(org.springframework.web.server.ServerWebExchange exchange)
Resolve the given request to a list of requested media types.
|
List<org.springframework.http.MediaType> resolveMediaTypes(org.springframework.web.server.ServerWebExchange exchange) throws org.springframework.web.server.NotAcceptableStatusException
exchange
- the current exchangeorg.springframework.web.server.NotAcceptableStatusException
- if the requested media types is invalid