mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Polishing
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
|
||||
+4
-1
@@ -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 {
|
||||
|
||||
|
||||
+2
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user