public class FixedContentTypeResolver extends Object implements RequestedContentTypeResolver
RequestedContentTypeResolver that resolves to a fixed list of media types.| Constructor and Description |
|---|
FixedContentTypeResolver(org.springframework.http.MediaType mediaTypes)
Create an instance with the given content type.
|
| 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 FixedContentTypeResolver(org.springframework.http.MediaType mediaTypes)
public List<org.springframework.http.MediaType> resolveMediaTypes(org.springframework.web.server.ServerWebExchange exchange)
RequestedContentTypeResolverresolveMediaTypes in interface RequestedContentTypeResolverexchange - the current exchange