View that writes model attribute(s) with an HttpMessageWriter.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Set | |
| private final HttpMessageWriter |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpMessageWriterView(HttpMessageWriter<?> writer)
Constructor with a fully initialized |
| Modifier and Type | Method and Description |
|---|---|
| public HttpMessageWriter | |
| public final Set | |
| private Object | |
| public List | getSupportedMediaTypes()
Overrides default org. Return the list of media types this View supports, or an empty list. |
| private boolean | |
| public Mono | render(Map<String, ?>
a Map with name Strings as keys and corresponding model
objects as values (Map can also be model, MediaType null in case of empty model)the content type selected to render with which should
match one of the contentType, ServerWebExchange supported media types.the current exchange exchange)Implements org. Render the view based on the given |
| public void | setModelKeys(Set<String> modelKeys)
Set the attributes in the model that should be rendered by this view. |
| private <T> Mono |
| canWriteMap | back to summary |
|---|---|
| private final boolean canWriteMap | |
| modelKeys | back to summary |
|---|---|
| private final Set<String> modelKeys | |
| writer | back to summary |
|---|---|
| private final HttpMessageWriter<?> writer | |
| HttpMessageWriterView | back to summary |
|---|---|
| public HttpMessageWriterView(Encoder<?> encoder) Constructor with an | |
| HttpMessageWriterView | back to summary |
|---|---|
| public HttpMessageWriterView(HttpMessageWriter<?> writer) Constructor with a fully initialized | |
| getMessageWriter | back to summary |
|---|---|
| public HttpMessageWriter Return the configured message writer. | |
| getModelKeys | back to summary |
|---|---|
| public final Set Return the configured model keys. | |
| getObjectToRender | back to summary |
|---|---|
private Object getObjectToRender(Map<String, ?> model)
| |
| getSupportedMediaTypes | back to summary |
|---|---|
| public List Overrides default org. Doc from org. Return the list of media types this View supports, or an empty list. The implementation of this method for
| |
| isMatch | back to summary |
|---|---|
| private boolean isMatch(Map. | |
| render | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Render the view based on the given
| |
| setModelKeys | back to summary |
|---|---|
| public void setModelKeys(Set<String> modelKeys) 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
| |
| write | back to summary |
|---|---|
private <T> Mono
| |