- 01 7月, 2016 2 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
- 30 6月, 2016 3 次提交
-
-
由 Sebastien Deleuze 提交于
-
由 Arjen Poutsma 提交于
Refactored Undertow support to register a response listener only when the body is written to, as opposed to registering it at startup. The reason for this is that getting the response channel from the HttpServerExchange commits the status and response, making it impossible to change them after the fact. Fixed issue #119.
-
由 Rossen Stoyanchev 提交于
This is a port of the following commit, adapted for Java 8+: https://github.com/spring-projects/spring-framework/commit/89396ff01ff159aa7df18e332f3888cf9ce3dc20
-
- 29 6月, 2016 1 次提交
-
-
由 Sebastien Deleuze 提交于
-
- 27 6月, 2016 3 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Currently ResponseEntityResultHandler is ordered lower than ResponseBodyResultHandler by default whch means a ResponseEntity should not be picked by the ResponseBodyResultHandler. However as it is easy to have both ResponseEntity and @ResponseBody e.g. in @RestControler (or even by mistake) and in general it makes sense for ResponseBodyResultHandler to explicitly recognize and ignore the ResponseEntity return type.
-
由 Sebastien Deleuze 提交于
-
- 25 6月, 2016 4 次提交
-
-
由 Rossen Stoyanchev 提交于
We now also check the default content type if the content type is application/octet-stream as we do today. Uncommented failing test that now passes.
-
由 Rossen Stoyanchev 提交于
Before this commit only ResponseEntity with async body was supported, e.g. ResponseEntity<Mono<String>> This commit also adds suppport for an asyn wrapper around, e.g. Mono<ResponseEntity<String>.
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Introduce separate test classes for each base class in the hierarchy above @ResponseBody and ResponseEntity result handlers. Also start porting existing unit test cases for @ResponseBody and ResponseEntity return value handlers.
-
- 24 6月, 2016 4 次提交
-
-
由 Sebastien Deleuze 提交于
CodecHttpMessageConverter is now suitable for SSE since it now handles default content type.
-
由 Arjen Poutsma 提交于
Reactored Servlet 3.1 and Undertow response support into an AbstractResponseBodySubscriber that uses an internal state machine, making thread-safity a lot easier.
-
由 Sebastien Deleuze 提交于
-
由 Sebastien Deleuze 提交于
Flux<SseEvent> is Spring Web Reactive equivalent to Spring MVC SseEmitter type. It allows to send Server-Sent Events in a reactive way. Sending Flux<String> or Flux<Pojo> is equivalent to sending Flux<SseEvent> with the data property set to the String or Pojo value. For example: @RestController public class SseController { @RequestMapping("/sse/string") Flux<String> string() { return Flux.interval(Duration.ofSeconds(1)).map(l -> "foo " + l); } @RequestMapping("/sse/person") Flux<Person> person() { return Flux.interval(Duration.ofSeconds(1)).map(l -> new Person(Long.toString(l), "foo", "bar")); } @RequestMapping("/sse-raw") Flux<SseEvent> sse() { return Flux.interval(Duration.ofSeconds(1)).map(l -> { SseEvent event = new SseEvent(); event.setId(Long.toString(l)); event.setData("foo\nbar"); event.setComment("bar\nbaz"); return event; }); } }
-
- 22 6月, 2016 1 次提交
-
-
由 Rossen Stoyanchev 提交于
-
- 11 6月, 2016 1 次提交
-
-
由 Rossen Stoyanchev 提交于
-
- 09 6月, 2016 1 次提交
-
-
由 Rossen Stoyanchev 提交于
The Pojo test class from the codec package will end up in spring-core. This commit ensures it is used only from classes that also belong to spring-core.
-
- 08 6月, 2016 1 次提交
-
-
由 Rossen Stoyanchev 提交于
-
- 07 6月, 2016 1 次提交
-
-
由 Rossen Stoyanchev 提交于
-
- 06 6月, 2016 3 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
- 04 6月, 2016 2 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
- 02 6月, 2016 1 次提交
-
-
由 Rossen Stoyanchev 提交于
Removed in favor of accessing the factory from the response.
-
- 01 6月, 2016 6 次提交
-
-
由 Sebastien Deleuze 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
ViewResolutionResultHandler and ResponseBodyResultHandler now share a common base class ContentNegotiatingResultHandlerSupport that supports content negotiation. For view resolution we compare against the supported media types of resolved View instances, which may include default View's delegating to an HttpMessageConverter (e.g. JSON, XML, rendering).
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
View now returns Mono<Void> rather than Flux<DataBuffer> which aligns more closely with the reactive HttpMessageConverter vs the Encoder. The change was prompted by the upcoming implementation of a View that delegates to an existing HttpMessageConverter e.g. for JSON, XML. The resulting change also brings the reactive View closer in spirit to the View from spring-webmvc which returns void.
-
由 Rossen Stoyanchev 提交于
-
- 30 5月, 2016 1 次提交
-
-
由 Sebastien Deleuze 提交于
-
- 28 5月, 2016 3 次提交
-
-
由 Rossen Stoyanchev 提交于
This commit adds support for Model-related return values types such as Map, Model, @ModelAttribute annotated, and non-simple types, which helps to clarify the logic in ViewResolutionResultHandler.
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
- 27 5月, 2016 2 次提交
-
-
由 Arjen Poutsma 提交于
-
由 Rossen Stoyanchev 提交于
-