From e4c62cc0296ba699440dfe8c01ab5f63dd26ac50 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 6 Apr 2017 14:21:39 -0400 Subject: [PATCH] Controller API for view rendering Issue: SPR-15211 --- .../web/bind/annotation/RequestMapping.java | 7 +- .../result/view/DefaultRendering.java | 80 +++++++++ .../result/view/DefaultRenderingBuilder.java | 131 ++++++++++++++ .../web/reactive/result/view/Rendering.java | 163 ++++++++++++++++++ .../view/ViewResolutionResultHandler.java | 11 +- .../view/DefaultRenderingBuilderTests.java | 140 +++++++++++++++ .../ViewResolutionResultHandlerTests.java | 25 ++- src/docs/asciidoc/web/web-mvc.adoc | 6 +- 8 files changed, 553 insertions(+), 10 deletions(-) create mode 100644 spring-webflux/src/main/java/org/springframework/web/reactive/result/view/DefaultRendering.java create mode 100644 spring-webflux/src/main/java/org/springframework/web/reactive/result/view/DefaultRenderingBuilder.java create mode 100644 spring-webflux/src/main/java/org/springframework/web/reactive/result/view/Rendering.java create mode 100644 spring-webflux/src/test/java/org/springframework/web/reactive/result/view/DefaultRenderingBuilderTests.java diff --git a/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java b/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java index 5eae666510..596a834cb5 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java +++ b/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java @@ -157,9 +157,10 @@ import org.springframework.core.annotation.AliasFor; * *

The following return types are supported for handler methods: *