Polishing

This commit is contained in:
Juergen Hoeller
2026-02-17 18:57:09 +01:00
parent 727ccd04ef
commit 9b10bb5e08
4 changed files with 9 additions and 4 deletions
@@ -41,8 +41,8 @@ import org.springframework.util.Assert;
* @since 15.03.2004
* @see #setEncoding
* @see #setForceEncoding
* @see jakarta.servlet.http.HttpServletRequest#setCharacterEncoding
* @see jakarta.servlet.http.HttpServletResponse#setCharacterEncoding
* @see jakarta.servlet.http.HttpServletRequest#setCharacterEncoding(String)
* @see jakarta.servlet.http.HttpServletResponse#setCharacterEncoding(String)
*/
public class CharacterEncodingFilter extends OncePerRequestFilter {
@@ -59,7 +59,6 @@ class WebFluxViewResolutionIntegrationTests {
private static final MediaType TEXT_HTML_ISO_8859_1 = MediaType.parseMediaType("text/html;charset=ISO-8859-1");
@Nested
class FreeMarkerTests {
@@ -115,6 +114,7 @@ class WebFluxViewResolutionIntegrationTests {
}
}
@Configuration(proxyBeanMethods = false)
static class FreeMarkerWebFluxConfig extends AbstractWebFluxConfig {
@@ -131,6 +131,7 @@ class WebFluxViewResolutionIntegrationTests {
}
}
@Configuration(proxyBeanMethods = false)
static class ExplicitDefaultEncodingConfig extends AbstractWebFluxConfig {
@@ -148,6 +149,7 @@ class WebFluxViewResolutionIntegrationTests {
}
}
@Configuration(proxyBeanMethods = false)
static class ExplicitDefaultEncodingAndContentTypeConfig extends AbstractWebFluxConfig {
@@ -196,6 +198,7 @@ class WebFluxViewResolutionIntegrationTests {
}
}
@Controller
static class SampleController {
@@ -34,6 +34,7 @@ import org.springframework.web.servlet.ModelAndView;
/**
* Base class for {@link ServerResponse} implementations with error handling.
*
* @author Arjen Poutsma
* @since 5.3
*/
@@ -81,6 +82,7 @@ abstract class ErrorHandlingServerResponse implements ServerResponse {
return null;
}
private static class ErrorHandler<T extends ServerResponse> {
private final Predicate<Throwable> predicate;
@@ -395,7 +395,7 @@ public class XsltView extends AbstractUrlBasedView {
* Configure the supplied {@link HttpServletResponse}.
* <p>The default implementation of this method sets the
* {@link HttpServletResponse#setContentType content type} and
* {@link HttpServletResponse#setCharacterEncoding encoding}
* {@link HttpServletResponse#setCharacterEncoding(String) encoding}
* from the "media-type" and "encoding" output properties
* specified in the {@link Transformer}.
* @param model merged output Map (never {@code null})