public abstract class ViewResolverSupport extends Object implements org.springframework.core.Ordered
ViewResolver implementations with shared properties.| Modifier and Type | Field and Description |
|---|---|
static org.springframework.http.MediaType |
DEFAULT_CONTENT_TYPE
The default
content-type for views. |
| Constructor and Description |
|---|
ViewResolverSupport() |
| Modifier and Type | Method and Description |
|---|---|
Charset |
getDefaultCharset()
Return the default charset, used when the
content type does not contain one.
|
int |
getOrder() |
List<org.springframework.http.MediaType> |
getSupportedMediaTypes()
Return the configured media types supported by this view.
|
void |
setDefaultCharset(Charset defaultCharset)
Set the default charset for this view, used when the
content type does not contain one.
|
void |
setOrder(int order)
Specify the order value for this ViewResolver bean.
|
void |
setSupportedMediaTypes(List<org.springframework.http.MediaType> supportedMediaTypes)
Set the supported media types for this view.
|
public static final org.springframework.http.MediaType DEFAULT_CONTENT_TYPE
content-type for views.public void setSupportedMediaTypes(List<org.springframework.http.MediaType> supportedMediaTypes)
public List<org.springframework.http.MediaType> getSupportedMediaTypes()
public void setDefaultCharset(Charset defaultCharset)
public Charset getDefaultCharset()
public void setOrder(int order)
The default value is Ordered.LOWEST_PRECEDENCE, meaning non-ordered.
Ordered.getOrder()public int getOrder()
getOrder in interface org.springframework.core.Ordered