ViewResolver implementations with shared properties.
| Modifier and Type | Field and Description |
|---|---|
| public static final MediaType | DEFAULT_CONTENT_TYPE
The default |
| private Charset | |
| private final List | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Charset | |
| public int | |
| public List | |
| public void | setDefaultCharset(Charset defaultCharset)
Set the default charset for this view, used when the content type does not contain one. |
| public void | |
| public void | setSupportedMediaTypes(List<MediaType> supportedMediaTypes)
Set the supported media types for this view. |
| DEFAULT_CONTENT_TYPE | back to summary |
|---|---|
| public static final MediaType DEFAULT_CONTENT_TYPE The default | |
| defaultCharset | back to summary |
|---|---|
| private Charset defaultCharset | |
| mediaTypes | back to summary |
|---|---|
| private final List<MediaType> mediaTypes | |
| order | back to summary |
|---|---|
| private int order | |
| ViewResolverSupport | back to summary |
|---|---|
| public ViewResolverSupport() | |
| getDefaultCharset | back to summary |
|---|---|
| public Charset getDefaultCharset() Return the default charset, used when the content type does not contain one. | |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. 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 Same order values will result in arbitrary sort positions for the affected objects.
| |
| getSupportedMediaTypes | back to summary |
|---|---|
| public List Return the configured media types supported by this view. | |
| 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. | |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) Specify the order value for this ViewResolver bean. The default value is | |
| setSupportedMediaTypes | back to summary |
|---|---|
| public void setSupportedMediaTypes(List<MediaType> supportedMediaTypes) Set the supported media types for this view. Default is "text/html;charset=UTF-8". | |