View implementations.
| Modifier and Type | Field and Description |
|---|---|
| private final ReactiveAdapterRegistry | |
| private ApplicationContext | |
| private String | |
| private Charset | |
| protected final Log | logger
Logger that is available to subclasses. |
| private final List | |
| public static final String | REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME
Well-known name for the RequestDataValueProcessor in the bean factory. |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected RequestContext | Returns: theRequestContext instancethe current exchange exchange, Map<String, Object> a combined output Map (never model)null), with dynamic values
taking precedence over static attributesCreate a |
| protected String | |
| public ApplicationContext | |
| public String | |
| public Charset | |
| protected Mono | getModelAttributes(Map<String, ?> model, ServerWebExchange exchange)
Prepare the model to use for rendering. |
| public String | |
| protected RequestDataValueProcessor | Returns: theRequestDataValueProcessor, or null if there is
none in the application contextGet the |
| public List | getSupportedMediaTypes()
Overrides default org. Get the configured media types supported by this view. |
| protected final ApplicationContext | Returns: theApplicationContext (never null)Obtain the |
| public Mono | Returns: aMono that represents when and if rendering succeedsa map with attribute names as keys and corresponding model
objects as values (the map can also be model, MediaType null in case of an empty model)the content type selected to render with, which should
match one of the contentType, ServerWebExchange supported media typesthe current exchange exchange)Implements org. Prepare the model to render. |
| protected abstract Mono | Returns: aMono that represents when and if rendering succeedscombined output Map (never renderAttributes, MediaType null),
with dynamic values taking precedence over static attributesthe content type selected to render with, which should
match one of the supported media types contentType, ServerWebExchange current exchange exchange)Subclasses must implement this method to actually render the view. |
| protected Mono | Returns: result aMono that completes when the model is readyUse the configured |
| public void | setApplicationContext(ApplicationContext
the ApplicationContext object to be used by this object applicationContext)Implements org. Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object. |
| public void | setBeanName(String
the name of the bean in the factory.
Note that this name is the actual bean name used in the factory, which may
differ from the originally specified name: in particular for inner bean
names, the actual bean name might have been made unique through appending
"#..." suffixes. Use the beanName)BeanFactoryUtils#originalBeanName(String)
method to extract the original bean name (without suffix), if desired.Implements org. Set the view's name. |
| public void | setDefaultCharset(Charset defaultCharset)
Set the default charset for this view, used when the content type does not contain one. |
| public void | setRequestContextAttribute(String requestContextAttribute)
Set the name of the |
| public void | setSupportedMediaTypes(List<MediaType> supportedMediaTypes)
Set the supported media types for this view. |
| public String |
| adapterRegistry | back to summary |
|---|---|
| private final ReactiveAdapterRegistry adapterRegistry | |
| applicationContext | back to summary |
|---|---|
| private ApplicationContext applicationContext
| |
| beanName | back to summary |
|---|---|
| private String beanName
| |
| defaultCharset | back to summary |
|---|---|
| private Charset defaultCharset | |
| logger | back to summary |
|---|---|
| protected final Log logger Logger that is available to subclasses. | |
| mediaTypes | back to summary |
|---|---|
| private final List<MediaType> mediaTypes | |
| REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME | back to summary |
|---|---|
| public static final String REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME Well-known name for the RequestDataValueProcessor in the bean factory. | |
| requestContextAttribute | back to summary |
|---|---|
| private String requestContextAttribute
| |
| AbstractView | back to summary |
|---|---|
| public AbstractView() | |
| AbstractView | back to summary |
|---|---|
| public AbstractView(ReactiveAdapterRegistry reactiveAdapterRegistry) | |
| addBindingResult | back to summary |
|---|---|
| private void addBindingResult(String name, Object value, Map<String, Object> model, ServerWebExchange exchange) | |
| createRequestContext | back to summary |
|---|---|
| protected RequestContext createRequestContext(ServerWebExchange exchange, Map<String, Object> model) Create a The default implementation creates a standard Can be overridden in subclasses to create custom instances.
| |
| formatViewName | back to summary |
|---|---|
| protected String formatViewName() | |
| getApplicationContext | back to summary |
|---|---|
public ApplicationContext getApplicationContext()
| |
| getBeanName | back to summary |
|---|---|
| public String getBeanName() Get the view's name. Should never be
| |
| getDefaultCharset | back to summary |
|---|---|
| public Charset getDefaultCharset() Get the default charset, used when the content type does not contain one. | |
| getModelAttributes | back to summary |
|---|---|
| protected Mono Prepare the model to use for rendering. The default implementation creates a combined output Map that includes model as well as static attributes with the former taking precedence. | |
| getRequestContextAttribute | back to summary |
|---|---|
| public String getRequestContextAttribute() Get the name of the
| |
| getRequestDataValueProcessor | back to summary |
|---|---|
| protected RequestDataValueProcessor getRequestDataValueProcessor() Get the The default implementation looks in the
| |
| getSupportedMediaTypes | back to summary |
|---|---|
| public List Overrides default org. Get the configured media types supported by this view.
| |
| obtainApplicationContext | back to summary |
|---|---|
| protected final ApplicationContext obtainApplicationContext() Obtain the
| |
| render | back to summary |
|---|---|
| public Mono Implements org. Prepare the model to render.
| |
| renderInternal | back to summary |
|---|---|
| protected abstract Mono Subclasses must implement this method to actually render the view.
| |
| resolveAsyncAttributes | back to summary |
|---|---|
| protected Mono Use the configured | |
| setApplicationContext | back to summary |
|---|---|
| public void setApplicationContext(ApplicationContext applicationContext) Implements org. Doc from org. Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object. Invoked after population of normal bean properties but before an init callback such
as
| |
| setBeanName | back to summary |
|---|---|
| public void setBeanName(String beanName) Implements org. Set the view's name. Helpful for traceability. Framework code must call this when constructing views.
| |
| setDefaultCharset | back to summary |
|---|---|
| public void setDefaultCharset(Charset defaultCharset) Set the default charset for this view, used when the content type does not contain one. Default is UTF 8. | |
| setRequestContextAttribute | back to summary |
|---|---|
| public void setRequestContextAttribute(String requestContextAttribute) Set the name of the Default is none ( | |
| setSupportedMediaTypes | back to summary |
|---|---|
| public void setSupportedMediaTypes(List<MediaType> supportedMediaTypes) Set the supported media types for this view. Default is | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |