public class FixedContentTypeResolver extends Object implements RequestedContentTypeResolver
RequestedContentTypeResolver that resolves to a fixed list of media types.| Constructor and Description |
|---|
FixedContentTypeResolver(MediaType mediaTypes)
Create an instance with the given content type.
|
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
resolveMediaTypes(ServerWebExchange exchange)
Resolve the given request to a list of requested media types.
|
public FixedContentTypeResolver(MediaType mediaTypes)
public List<MediaType> resolveMediaTypes(ServerWebExchange exchange)
RequestedContentTypeResolverresolveMediaTypes in interface RequestedContentTypeResolverexchange - the current exchange