1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
35
35
public abstract class ViewResolverSupport implements Ordered {
36
36
37
37
/**
38
- * The default {@link MediaType content-type} for views.
38
+ * The default {@link MediaType content-type} for views: {@code "text/html;charset=UTF-8"} .
39
39
*/
40
40
public static final MediaType DEFAULT_CONTENT_TYPE = MediaType .parseMediaType ("text/html;charset=UTF-8" );
41
41
@@ -54,7 +54,7 @@ public ViewResolverSupport() {
54
54
55
55
/**
56
56
* Set the supported media types for this view.
57
- * Default is "text/html;charset=UTF-8".
57
+ * <p> Default is {@code "text/html;charset=UTF-8"} .
58
58
*/
59
59
public void setSupportedMediaTypes (List <MediaType > supportedMediaTypes ) {
60
60
Assert .notEmpty (supportedMediaTypes , "MediaType List must not be empty" );
@@ -72,7 +72,7 @@ public List<MediaType> getSupportedMediaTypes() {
72
72
/**
73
73
* Set the default charset for this view, used when the
74
74
* {@linkplain #setSupportedMediaTypes(List) content type} does not contain one.
75
- * Default is {@linkplain StandardCharsets#UTF_8 UTF 8}.
75
+ * <p> Default is {@linkplain StandardCharsets#UTF_8 UTF- 8}.
76
76
*/
77
77
public void setDefaultCharset (Charset defaultCharset ) {
78
78
Assert .notNull (defaultCharset , "Default Charset must not be null" );
0 commit comments