open class HttpMessageWriterView : View
View that writes model attribute(s) with an HttpMessageWriter.
Author
Rossen Stoyanchev
Since
5.0
HttpMessageWriterView(encoder: Encoder<*>)
Constructor with an HttpMessageWriterView(writer: HttpMessageWriter<*>)
Constructor with a fully initialized HttpMessageWriter. |
open fun getMessageWriter(): HttpMessageWriter<*>
Return the configured message writer. |
|
fun getModelKeys(): MutableSet<String>
Return the configured model keys. |
|
open fun getSupportedMediaTypes(): MutableList<MediaType>
{@inheritDoc} The implementation of this method for HttpMessageWriterView delegates to |
|
open fun render(model: MutableMap<String, *>, contentType: MediaType, exchange: ServerWebExchange): Mono<Void> |
|
open fun setModelKeys(modelKeys: MutableSet<String>): Unit
Set the attributes in the model that should be rendered by this view. When set, all other model attributes will be ignored. The matching attributes are further narrowed with
|