open class FixedContentTypeResolver : RequestedContentTypeResolver
Resolver that always resolves to a fixed list of media types. This can be used as the "last in line" strategy providing a fallback for when the client has not requested any media types.
Author
Rossen Stoyanchev
Since
5.0
FixedContentTypeResolver(mediaType: MediaType)
Constructor with a single default FixedContentTypeResolver(mediaTypes: MutableList<MediaType>)
Constructor with an ordered List of default Consider appending |
open fun getContentTypes(): MutableList<MediaType>
Return the configured list of media types. |
|
open fun resolveMediaTypes(exchange: ServerWebExchange): MutableList<MediaType> |