public interface RequestedContentTypeResolver
ServerWebExchange
.
See RequestedContentTypeResolverBuilder
to create a sequence of
strategies.
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)
exchange
- the current exchangeorg.springframework.web.server.NotAcceptableStatusException
- if the requested media type is invalid