public class HeaderContentTypeResolver extends Object implements RequestedContentTypeResolver
MEDIA_TYPE_ALL_LIST
Constructor and Description |
---|
HeaderContentTypeResolver() |
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.
|
public List<org.springframework.http.MediaType> resolveMediaTypes(org.springframework.web.server.ServerWebExchange exchange) throws org.springframework.web.server.NotAcceptableStatusException
RequestedContentTypeResolver
resolveMediaTypes
in interface RequestedContentTypeResolver
exchange
- the current exchangeRequestedContentTypeResolver.MEDIA_TYPE_ALL_LIST
if none
were requested.org.springframework.web.server.NotAcceptableStatusException
- if the requested media type is invalid