Class ViewResolverSupport
java.lang.Object
org.springframework.web.reactive.result.view.ViewResolverSupport
- All Implemented Interfaces:
- Ordered
- Direct Known Subclasses:
- UrlBasedViewResolver
Base class for 
ViewResolver implementations with shared properties.- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Juergen Hoeller
- 
Field SummaryFieldsFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn the default charset, used when the content type does not contain one.intgetOrder()Get the order value of this object.Return the configured media types supported by this view.voidsetDefaultCharset(Charset defaultCharset) Set the default charset for this view, used when the content type does not contain one.voidsetOrder(int order) Specify the order value for this ViewResolver bean.voidsetSupportedMediaTypes(List<MediaType> supportedMediaTypes) Set the supported media types for this view.
- 
Field Details- 
DEFAULT_CONTENT_TYPEThe defaultcontent-typefor views.
 
- 
- 
Constructor Details- 
ViewResolverSupportpublic ViewResolverSupport()
 
- 
- 
Method Details- 
setSupportedMediaTypesSet the supported media types for this view. Default is "text/html;charset=UTF-8".
- 
getSupportedMediaTypesReturn the configured media types supported by this view.
- 
setDefaultCharsetSet the default charset for this view, used when the content type does not contain one. Default is UTF 8.
- 
getDefaultCharsetReturn the default charset, used when the content type does not contain one.
- 
setOrderpublic void setOrder(int order) Specify the order value for this ViewResolver bean.The default value is Ordered.LOWEST_PRECEDENCE, meaning non-ordered.- See Also:
 
- 
getOrderpublic int getOrder()Description copied from interface:OrderedGet the order value of this object.Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority (somewhat analogous to Servlet load-on-startupvalues).Same order values will result in arbitrary sort positions for the affected objects. 
 
-