Polishing
This commit is contained in:
@@ -191,7 +191,7 @@ public abstract class WebUtils {
|
||||
* i.e. the value of the "defaultHtmlEscape" context-param in {@code web.xml}
|
||||
* (if any). Falls back to {@code false} in case of no explicit default given.
|
||||
* @param servletContext the servlet context of the web application
|
||||
* @return whether default HTML escaping is enabled (default is false)
|
||||
* @return whether default HTML escaping is enabled (default is {@code false})
|
||||
* @deprecated as of Spring 4.1, in favor of {@link #getDefaultHtmlEscape}
|
||||
*/
|
||||
@Deprecated
|
||||
@@ -211,7 +211,8 @@ public abstract class WebUtils {
|
||||
* an actual boolean value specified, allowing to have a context-specific
|
||||
* default in case of no setting at the global level.
|
||||
* @param servletContext the servlet context of the web application
|
||||
* @return whether default HTML escaping is enabled (null = no explicit default)
|
||||
* @return whether default HTML escaping is enabled for the given application
|
||||
* ({@code null} = no explicit default)
|
||||
*/
|
||||
public static Boolean getDefaultHtmlEscape(ServletContext servletContext) {
|
||||
if (servletContext == null) {
|
||||
@@ -231,7 +232,8 @@ public abstract class WebUtils {
|
||||
* an actual boolean value specified, allowing to have a context-specific
|
||||
* default in case of no setting at the global level.
|
||||
* @param servletContext the servlet context of the web application
|
||||
* @return whether response encoding is used for HTML escaping (null = no explicit default)
|
||||
* @return whether response encoding is to be used for HTML escaping
|
||||
* ({@code null} = no explicit default)
|
||||
* @since 4.1.2
|
||||
*/
|
||||
public static Boolean getResponseEncodedHtmlEscape(ServletContext servletContext) {
|
||||
|
||||
Reference in New Issue
Block a user