Top Description Fields Constructors Methods
org.springframework.web.reactive.result.view

public abstract Class ViewResolverSupport

extends Object
implements Ordered
Class Inheritance
All Implemented Interfaces
org.springframework.core.Ordered
Known Direct Subclasses
org.springframework.web.reactive.result.view.UrlBasedViewResolver
Imports
java.nio.charset.Charset, .StandardCharsets, java.util.ArrayList, .List, org.springframework.core.Ordered, org.springframework.http.MediaType, org.springframework.util.Assert

Base class for ViewResolver implementations with shared properties.
Authors
Rossen Stoyanchev, Juergen Hoeller
Since
5.0

Field Summary

Modifier and TypeField and Description
public static final MediaType
DEFAULT_CONTENT_TYPE

The default content-type for views.

private Charset
private final List<MediaType>
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Charset
getDefaultCharset()

Return the default charset, used when the content type does not contain one.

public int
getOrder()

Implements org.springframework.core.Ordered.getOrder.

Get the order value of this object.

public List<MediaType>
getSupportedMediaTypes()

Return the configured media types supported by this view.

public void
setDefaultCharset(Charset defaultCharset)

Set the default charset for this view, used when the content type does not contain one.

public void
setOrder(int order)

Specify the order value for this ViewResolver bean.

public void
setSupportedMediaTypes(List<MediaType> supportedMediaTypes)

Set the supported media types for this view.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_CONTENT_TYPEback to summary
public static final MediaType DEFAULT_CONTENT_TYPE

The default content-type for views.

defaultCharsetback to summary
private Charset defaultCharset
mediaTypesback to summary
private final List<MediaType> mediaTypes
orderback to summary
private int order

Constructor Detail

ViewResolverSupportback to summary
public ViewResolverSupport()

Method Detail

getDefaultCharsetback to summary
public Charset getDefaultCharset()

Return the default charset, used when the content type does not contain one.

getOrderback to summary
public int getOrder()

Implements org.springframework.core.Ordered.getOrder.

Doc from org.springframework.core.Ordered.getOrder.

Get 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-startup values).

Same order values will result in arbitrary sort positions for the affected objects.

Returns:int

the order value

Annotations
@Override
getSupportedMediaTypesback to summary
public List<MediaType> getSupportedMediaTypes()

Return the configured media types supported by this view.

setDefaultCharsetback 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.

setOrderback to summary
public void setOrder(int order)

Specify the order value for this ViewResolver bean.

The default value is Ordered.LOWEST_PRECEDENCE, meaning non-ordered.

See Also
org.springframework.core.Ordered#getOrder()
setSupportedMediaTypesback to summary
public void setSupportedMediaTypes(List<MediaType> supportedMediaTypes)

Set the supported media types for this view. Default is "text/html;charset=UTF-8".