- 25 10月, 2016 8 次提交
-
-
由 Stephane Nicoll 提交于
Issue: SPR-14812
-
由 Stephane Nicoll 提交于
* pr/1222: Import format fix according to Code Style
-
由 Andriy Kryvtsun 提交于
Closes gh-1222
-
由 Sebastien Deleuze 提交于
Issue: SPR-14843
-
由 Arjen Poutsma 提交于
This commit introduces a couple of changes to BodyInserters: - Refactored writeWithMessageWriters into BiFunction - BodyInserters.fromResource now uses ResourceMessagewriter from context - BodyInserters.fromServerSentEvents now uses SseHttpMessageWriter from context
-
由 Arjen Poutsma 提交于
-
由 Brian Clozel 提交于
Reactor recently added the `ScriptedSubscriber` in its new `reactor-addons` module. This `Subscriber` revissits the previous `TestSubscriber` with many improvements, including: * scripting each expectation * builder API that guides you until the final verification step * virtual time support This commit refactor all existing tests to use this new infrastructure and removed the `TestSubscriber` implementation. Issue: SPR-14800
-
由 Stephane Nicoll 提交于
-
- 24 10月, 2016 2 次提交
-
-
由 Stephane Nicoll 提交于
This commit improves NoSuchBeanDefinitionException to expose a full ResolvableType rather than a raw class if a lookup by type failed. This allows to know more about the underlying type and is typically useful when a collection or map is required as the relevant generic type is the actual bean that wasn't found. Issue: SPR-14831
-
由 Rossen Stoyanchev 提交于
Issue: SPR-14006
-
- 22 10月, 2016 5 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-14772, SPR-14803
-
由 Rossen Stoyanchev 提交于
At present Tomcat expects a WriteListener to be registered immediately on the initial thread so for the time being this commit ensures the WriteListener is registered unconditionally for every request. Issue: SPR-14772, SPR-14803
-
由 Brian Clozel 提交于
This commit removes factory methods for `RequestMappingHandlerMapping` and `RequestMappingHandlerAdapter` from `WebReactiveConfigurer`. `WebReactiveConfigurer` should promote only common customizations; those factory methods should be overridden when extending `WebReactiveConfigurationSupport`, in advanced configuration scenarios.
-
由 Rossen Stoyanchev 提交于
This commit replaces the lazy URI and headers initialization in the reactive ServerHttpRequest in favor of eager initialization at construction time. Both the URI and headers are nearly guaranteed to be accessed for every request (URI for application path, headers for "Origin" header). Query params are still lazily parsed but parsing is idemptotent and in the unlikely case of concurrent access (it's the framework that typically accesses query params) it maybe parsed twice but should be side effect free still. Cookies are also parsed lazily and since we delegate to the "native" request, it depends on the underlying runtime whether synchronization is needed. This commit adds synchronization for the HttpServletRequest. At present RxNetty, Reactor, and Undertow implementations provide thread-safe access to cookies.
-
由 Rossen Stoyanchev 提交于
-
- 21 10月, 2016 10 次提交
-
-
由 Arjen Poutsma 提交于
This commit adds a ByteArrayDecoder and ByteArrayEncoder.
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-14826
-
由 Juergen Hoeller 提交于
Issue: SPR-14822
-
由 Juergen Hoeller 提交于
Issue: SPR-14760
-
由 Juergen Hoeller 提交于
-
由 Brian Clozel 提交于
-
由 Sebastien Deleuze 提交于
-
由 Rossen Stoyanchev 提交于
This commit introduces support for running multiple HttpHandler's under distinct context paths which effectively allows running multiple applications on the same server. ContextPathIntegrationTests contains an example of two applications with different context paths. In order to support this the HttpHandler adapters for all supported runtimes now have a common base class HttpHandlerAdapterSupport which has two constructor choices -- one with a single HttpHandler and another with a Map<String, HttpHandler>. Note that in addition to the contextPath under which an HttpHandler is configured there may also be a "native" contextPath under which the native runtime adapter is configured (e.g. Servlet containers). In such cases the contextPath is a combination of the native contextPath and the contextPath assigned to the HttpHandler. See for example HttpHandlerAdapterSupportTests. Issue: SPR-14726
-
由 Brian Clozel 提交于
-
- 20 10月, 2016 14 次提交
-
-
由 soldierkam 提交于
-
由 Arjen Poutsma 提交于
This commit adds a bodyToMono and bodyToFlux convenience method to ClientResponse/ServerRequest, similar to the body(Publisher) method that is on ClientRequest/ServerResponse.
-
由 Sebastien Deleuze 提交于
-
由 Sebastien Deleuze 提交于
-
由 Brian Clozel 提交于
Issue: SPR-14827
-
由 Arjen Poutsma 提交于
This commit introduces the following changes to web.reactive.function: - Added RouterFunction.andRoute(), a combination of RouterFunction.and() with RouterFunctions.route() - ServerRequest.pathVariable() returns String instead of Optional<String>. An exception is thrown if the variable is not present. - Added HandlerFilterFunction.andThen and HandlerFilterFunction.apply()
-
由 Sebastien Deleuze 提交于
This commit removes the usage of Reactor adapters (about to be moved from Reactor Core to a new Reactor Adapter module). Instead, RxReactiveStreams is now used for adapting RxJava 1 and Flowable methods are used for RxJava 2. Issue: SPR-14824
-
由 Arjen Poutsma 提交于
This commit changes web.reactive.function to reflect the introduction of the new WebClient. Changes include: - Request -> ServerRequest - Response -> ServerResponse - FilterFunction -> HandlerFilterFunction - StrategiesSupplier -> HandlerStrategies
-
由 Arjen Poutsma 提交于
This commit refactors the web client to be more similar to web.reactive.function. Changes include: - Refactor ClientWebRequest to immutable ClientRequest with builder and support for BodyInserters. - Introduce ClientResponse which exposes headers, status, and support for reading from the body with BodyExtractors. - Removed ResponseErrorHandler, in favor of having a ClientResponse with "error" status code (i.e. 4xx or 5xx). Also removed WebClientException and subclasses. - Refactored WebClientConfig to WebClientStrategies. - Refactored ClientHttpRequestInterceptor to ExchangeFilterFunction. - Removed ClientWebRequestPostProcessor in favor of ExchangeFilterFunction, which allows for asynchronous execution. Issue: SPR-14827
-
由 Arjen Poutsma 提交于
This commit moves the web.reactive.function.[BodyInserter|BodyExtractor] to http.codec, so that they can be used from the client as well. Furthermore, it parameterized both inserter and extractor over ReactiveHttpOutputMessage and ReactiveHttpInputMessage respectively, so that they can be limited to only be used on the client or server.
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-14798
-
由 Sebastien Deleuze 提交于
This commit also improves CorsRegistration Javadoc. Issue: SPR-14798
-
由 Violeta Georgieva 提交于
Typically the Mono<Void> from the HttpHandler also reflects the completion of the request and response body processors and at that point invoking AsyncContext#complete() from HandlerResultSubscriber should be sufficient. This commit explicitly propagates the AsyncListener.onComplete event to the request and response body processors for added safety. Technically as mentioned those processors should have completed but depending on how the controller is written there is a possibility the body processors may not have completed. Issue: SPR-14772
-
- 18 10月, 2016 1 次提交
-
-
由 Arjen Poutsma 提交于
* grow-data-buffer: DefaultDataBuffer improvements
-