language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/core.adoc
@@ -4,6 +4,7 @@ :api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework :toc: left :toclevels: 2 +:docinfo1: This part of the reference documentation covers all of those technologies that are absolutely integral to the Spring Framework.
true
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/data-access.adoc
@@ -4,6 +4,7 @@ :api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework :toc: left :toclevels: 2 +:docinfo1: This part of the reference documentation is concerned with data access and the interaction between the data access layer and the business or service layer.
true
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/docinfo-footer.html
@@ -0,0 +1,10 @@ +<script> + var rootLink = document.createElement("a"); + rootLink.setAttribute("href", "index.html"); + rootLink.innerHTML = "<i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i>&nbsp;&nbsp;Back to index"; + var p = document.createElement("p"); + p.appendChild(rootLink); + var t...
true
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/integration.adoc
@@ -6,6 +6,7 @@ :doc-spring-gemfire: {doc-root}/spring-gemfire/docs/current/reference :toc: left :toclevels: 2 +:docinfo1: This part of the reference documentation covers the Spring Framework's integration with a number of Java EE (and related) technologies.
true
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/kotlin.adoc
@@ -4,6 +4,7 @@ :api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework :toc: left :toclevels: 2 +:docinfo1: [[introduction]] == Introduction
true
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/overview.adoc
@@ -1,4 +1,7 @@ -== Spring Framework Overview +:toc: left +:toclevels: 1 +:docinfo1: += Spring Framework Overview Spring makes it easy to create Java enterprise applications. It provides everything you need beyond the Java language itself. It also provides extensions and support for @@ -14,7 +17,7 @@ Spring is open...
true
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/reactive-web.adoc
@@ -4,6 +4,7 @@ :api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework :toc: left :toclevels: 3 +:docinfo1: This part of the documentation covers support for reactive stack, web applications built on http://www.reactive-streams.org/[Reactive Streams] and adapted ...
true
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/testing.adoc
@@ -5,6 +5,7 @@ :doc-spring-boot: {doc-root}/spring-boot/docs/current/reference :toc: left :toclevels: 2 +:docinfo1: The adoption of the test-driven-development (TDD) approach to software development is certainly advocated by the Spring team, and so coverage of Spring's
true
Other
spring-projects
spring-framework
825449a3d2aa2b70ed7967ee2c266da5e26aaf9e.json
Introduce a link to go back to refdoc index
src/docs/asciidoc/web.adoc
@@ -4,6 +4,7 @@ :api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework :toc: left :toclevels: 2 +:docinfo1: This part of the documentation covers support for Servlet stack, web applications built on the Servlet API and deployed to Servlet containers. Individual c...
true
Other
spring-projects
spring-framework
ec2218c9670ab2e2b88a86dba21bef7f1bf59f9c.json
AbstractListenerWriteFlushProcessor: Ensure the last flush will be performed When writing Publisher<Publisher<T>>, a flush operation is performed onComplete for every Publisher. If the flush operation is not able to be performed immediately it will be retried before starting to process data provided by the next Publis...
spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java
@@ -124,6 +124,29 @@ protected void flushingFailed(Throwable t) { */ protected abstract void flush() throws IOException; + /** + * Whether writing is possible. + */ + protected abstract boolean isWritePossible(); + + /** + * Whether flushing is pending. + */ + protected abstract boolean isFlushPending(); + +...
true
Other
spring-projects
spring-framework
ec2218c9670ab2e2b88a86dba21bef7f1bf59f9c.json
AbstractListenerWriteFlushProcessor: Ensure the last flush will be performed When writing Publisher<Publisher<T>>, a flush operation is performed onComplete for every Publisher. If the flush operation is not able to be performed immediately it will be retried before starting to process data provided by the next Publis...
spring-web/src/main/java/org/springframework/http/server/reactive/ServletServerHttpResponse.java
@@ -18,7 +18,6 @@ import java.io.IOException; import java.io.InputStream; -import java.io.UncheckedIOException; import java.nio.charset.Charset; import java.util.List; import java.util.Map; @@ -52,6 +51,8 @@ public class ServletServerHttpResponse extends AbstractListenerServerHttpRespons private final HttpSe...
true
Other
spring-projects
spring-framework
ec2218c9670ab2e2b88a86dba21bef7f1bf59f9c.json
AbstractListenerWriteFlushProcessor: Ensure the last flush will be performed When writing Publisher<Publisher<T>>, a flush operation is performed onComplete for every Publisher. If the flush operation is not able to be performed immediately it will be retried before starting to process data provided by the next Publis...
spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java
@@ -147,8 +147,20 @@ private ResponseBodyProcessor createBodyProcessor() { return new ResponseBodyProcessor(this.responseChannel); } + private boolean isWritePossible() { + if (this.responseChannel == null) { + this.responseChannel = this.exchange.getResponseChannel(); + } + if (this.responseChannel.isWrite...
true
Other
spring-projects
spring-framework
e70210a1da994ea52e1ade30b052bea9e12e9d1d.json
Introduce ForwardedHeaderFilter for WebFlux This commit introduces a ForwardedHeaderFilter for WebFlux, similar to the existing Servlet version. As part of this the DefaultServerHttpRequestBuilder had to be changed to no longer use delegation, but instead use a deep copy at the point of mutate(). Otherwise, headers co...
spring-web/src/main/java/org/springframework/http/server/reactive/DefaultServerHttpRequestBuilder.java
@@ -16,14 +16,24 @@ package org.springframework.http.server.reactive; +import java.net.InetSocketAddress; import java.net.URI; import java.net.URISyntaxException; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.function.Consumer; +import reactor.core.publisher.Flu...
true
Other
spring-projects
spring-framework
e70210a1da994ea52e1ade30b052bea9e12e9d1d.json
Introduce ForwardedHeaderFilter for WebFlux This commit introduces a ForwardedHeaderFilter for WebFlux, similar to the existing Servlet version. As part of this the DefaultServerHttpRequestBuilder had to be changed to no longer use delegation, but instead use a deep copy at the point of mutate(). Otherwise, headers co...
spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequest.java
@@ -17,8 +17,11 @@ package org.springframework.http.server.reactive; import java.net.InetSocketAddress; +import java.net.URI; +import java.util.function.Consumer; import org.springframework.http.HttpCookie; +import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.spr...
true
Other
spring-projects
spring-framework
e70210a1da994ea52e1ade30b052bea9e12e9d1d.json
Introduce ForwardedHeaderFilter for WebFlux This commit introduces a ForwardedHeaderFilter for WebFlux, similar to the existing Servlet version. As part of this the DefaultServerHttpRequestBuilder had to be changed to no longer use delegation, but instead use a deep copy at the point of mutate(). Otherwise, headers co...
spring-web/src/main/java/org/springframework/web/filter/reactive/ForwardedHeaderFilter.java
@@ -0,0 +1,128 @@ +/* + * Copyright 2002-2017 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
e70210a1da994ea52e1ade30b052bea9e12e9d1d.json
Introduce ForwardedHeaderFilter for WebFlux This commit introduces a ForwardedHeaderFilter for WebFlux, similar to the existing Servlet version. As part of this the DefaultServerHttpRequestBuilder had to be changed to no longer use delegation, but instead use a deep copy at the point of mutate(). Otherwise, headers co...
spring-web/src/main/java/org/springframework/web/filter/reactive/HiddenHttpMethodFilter.java
@@ -81,7 +81,7 @@ public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) { String method = formData.getFirst(this.methodParamName); return StringUtils.hasLength(method) ? mapExchange(exchange, method) : exchange; }) - .flatMap((exchange1) -> chain.filter(exchange1)); + .flatMa...
true
Other
spring-projects
spring-framework
e70210a1da994ea52e1ade30b052bea9e12e9d1d.json
Introduce ForwardedHeaderFilter for WebFlux This commit introduces a ForwardedHeaderFilter for WebFlux, similar to the existing Servlet version. As part of this the DefaultServerHttpRequestBuilder had to be changed to no longer use delegation, but instead use a deep copy at the point of mutate(). Otherwise, headers co...
spring-web/src/test/java/org/springframework/web/filter/reactive/ForwardedHeaderFilterTests.java
@@ -0,0 +1,146 @@ +/* + * Copyright 2002-2017 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
81125de6979b84f8cf30ea31c372e87dde98d9a4.json
Fix error responses handling in WebClient This commit fixes a typo in the `DefaultWebClient` implementation. Instead of forwarding resolved `WebClientException` instances as error signals, the `bodyToMono(ParameterizedTypeReference)` variant would just forward those exceptions as `onNext` signals. Issue: SPR-15946
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
@@ -422,7 +422,7 @@ public <T> Mono<T> bodyToMono(Class<T> bodyType) { public <T> Mono<T> bodyToMono(ParameterizedTypeReference<T> typeReference) { return this.responseMono.flatMap( response -> bodyToMono(response, BodyExtractors.toMono(typeReference), - mono -> (Mono<T>)mono)); + this::monoThr...
false
Other
spring-projects
spring-framework
98b6491f0c3eebcdadaf0cafc7aec46455e160ef.json
Send error signal also for empty server responses Prior to that commit, the `ResponseSpec` `WebClient` would process error responses (4xx, 5xx HTTP status) and transform those into error signals with a `WebClientResponseException`. But this would only work if the HTTP response would have a non-empty response body. An...
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
@@ -483,6 +483,7 @@ private static Mono<WebClientResponseException> createResponseException(ClientRe DataBufferUtils.release(dataBuffer); return bytes; }) + .defaultIfEmpty(new byte[0]) .map(bodyBytes -> { String msg = String.format("ClientResponse has erroneous status code: %d %s",...
true
Other
spring-projects
spring-framework
98b6491f0c3eebcdadaf0cafc7aec46455e160ef.json
Send error signal also for empty server responses Prior to that commit, the `ResponseSpec` `WebClient` would process error responses (4xx, 5xx HTTP status) and transform those into error signals with a `WebClientResponseException`. But this would only work if the HTTP response would have a non-empty response body. An...
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java
@@ -377,6 +377,26 @@ public void shouldGetErrorSignalOn404() throws Exception { }); } + @Test // SPR-15946 + public void shouldGetErrorSignalOnEmptyErrorResponse() throws Exception { + prepareResponse(response -> response.setResponseCode(404) + .setHeader("Content-Type", "text/plain")); + + Mono<String> res...
true
Other
spring-projects
spring-framework
e214d69350d374a769e59c867f2c50488caf5980.json
Remove jetbrains annotations inserted by IDE
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ModelInitializer.java
@@ -23,7 +23,6 @@ import java.util.Optional; import java.util.stream.Collectors; -import org.jetbrains.annotations.NotNull; import reactor.core.publisher.Mono; import org.springframework.core.Conventions; @@ -104,7 +103,6 @@ public Mono<Void> initModel(HandlerMethod handlerMethod, InitBinderBindingContex }...
true
Other
spring-projects
spring-framework
e214d69350d374a769e59c867f2c50488caf5980.json
Remove jetbrains annotations inserted by IDE
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ModelInitializerTests.java
@@ -23,7 +23,6 @@ import java.util.Map; import java.util.stream.Collectors; -import org.jetbrains.annotations.NotNull; import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; @@ -208,7 +207,6 @@ public void clearModelAttributeFromSession() throws Exception { } - @NotNull priva...
true
Other
spring-projects
spring-framework
a8693bf94705e50195d26f7e93b7150e1809d4fb.json
Improve Kotlin ref doc This commit add a section about annotations and provides various update and enhancements to the Kotlin reference documentation. Issue: SPR-15659
src/docs/asciidoc/kotlin.adoc
@@ -7,17 +7,19 @@ == Introduction -https://kotlinlang.org[Kotlin] is a statically-typed language targeting the JVM which allows to write concise and elegant -code while providing a very good https://kotlinlang.org/docs/reference/java-interop.html[interoperability] with libraries +https://kotlinlang.org[Kotlin] is ...
false
Other
spring-projects
spring-framework
ec6475a24c91b3e90e21b09d41a241e2e72f93a0.json
Expose scheme in ReactorServerHttpRequest URI This commit determines fixes ReactorServerHttpRequest.getUri() so that it includes a URL scheme. Issue: SPR-15931
spring-web/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpRequest.java
@@ -20,8 +20,10 @@ import java.net.URI; import java.net.URISyntaxException; +import io.netty.channel.ChannelPipeline; import io.netty.handler.codec.http.HttpHeaderNames; import io.netty.handler.codec.http.cookie.Cookie; +import io.netty.handler.ssl.SslHandler; import reactor.core.publisher.Flux; import reactor....
true
Other
spring-projects
spring-framework
ec6475a24c91b3e90e21b09d41a241e2e72f93a0.json
Expose scheme in ReactorServerHttpRequest URI This commit determines fixes ReactorServerHttpRequest.getUri() so that it includes a URL scheme. Issue: SPR-15931
spring-web/src/test/java/org/springframework/http/server/reactive/RxNettyServerHttpRequest.java
@@ -74,7 +74,8 @@ private static URI initUri(HttpServerRequest<ByteBuf> request, InetSocketAddress } private static URI createUrl(InetSocketAddress address, String requestUri) throws URISyntaxException { - URI baseUrl = new URI(null, null, address.getHostString(), address.getPort(), null, null, null); + // TODO...
true
Other
spring-projects
spring-framework
ec6475a24c91b3e90e21b09d41a241e2e72f93a0.json
Expose scheme in ReactorServerHttpRequest URI This commit determines fixes ReactorServerHttpRequest.getUri() so that it includes a URL scheme. Issue: SPR-15931
spring-web/src/test/java/org/springframework/http/server/reactive/ServerHttpRequestIntegrationTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import java.net.URI; -im...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-test/src/main/java/org/springframework/mock/http/client/reactive/MockClientHttpResponse.java
@@ -55,6 +55,8 @@ public class MockClientHttpResponse implements ClientHttpResponse { private final DataBufferFactory bufferFactory = new DefaultDataBufferFactory(); + private boolean closed = false; + public MockClientHttpResponse(HttpStatus status) { Assert.notNull(status, "HttpStatus is required"); @@ -...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpResponse.java
@@ -16,6 +16,8 @@ package org.springframework.http.client.reactive; +import java.io.Closeable; + import org.springframework.http.HttpStatus; import org.springframework.http.ReactiveHttpInputMessage; import org.springframework.http.ResponseCookie; @@ -25,9 +27,10 @@ * Represents a client-side reactive HTTP res...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpResponseDecorator.java
@@ -70,6 +70,10 @@ public Flux<DataBuffer> getBody() { return this.delegate.getBody(); } + @Override + public void close() { + this.delegate.close(); + } @Override public String toString() {
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpResponse.java
@@ -89,6 +89,10 @@ public MultiValueMap<String, ResponseCookie> getCookies() { return CollectionUtils.unmodifiableMultiValueMap(result); } + @Override + public void close() { + this.response.dispose(); + } @Override public String toString() {
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-web/src/test/java/org/springframework/mock/http/client/reactive/test/MockClientHttpResponse.java
@@ -55,13 +55,15 @@ public class MockClientHttpResponse implements ClientHttpResponse { private final DataBufferFactory bufferFactory = new DefaultDataBufferFactory(); + private boolean closed = false; public MockClientHttpResponse(HttpStatus status) { Assert.notNull(status, "HttpStatus is required"); t...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java
@@ -16,6 +16,7 @@ package org.springframework.web.reactive.function.client; +import java.io.Closeable; import java.util.List; import java.util.Optional; import java.util.OptionalLong; @@ -43,7 +44,7 @@ * @author Arjen Poutsma * @since 5.0 */ -public interface ClientResponse { +public interface ClientRespo...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientResponse.java
@@ -42,6 +42,7 @@ * Default implementation of {@link ClientResponse}. * * @author Arjen Poutsma + * @author Brian Clozel * @since 5.0 */ class DefaultClientResponse implements ClientResponse { @@ -97,22 +98,24 @@ public Map<String, Object> hints() { @Override public <T> Mono<T> bodyToMono(Class<? exten...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
@@ -413,50 +413,64 @@ public ResponseSpec onStatus(Predicate<HttpStatus> statusPredicate, @SuppressWarnings("unchecked") public <T> Mono<T> bodyToMono(Class<T> bodyType) { return this.responseMono.flatMap( - response -> bodyToPublisher(response, BodyExtractors.toMono(bodyType), + response -> bodyToMon...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java
@@ -461,6 +461,17 @@ interface Builder { * .exchange() * .flatMapMany(response -> response.bodyToFlux(Pojo.class)); * </pre> + * <p>If the response body is not consumed with {@code bodyTo*} + * or {@code toEntity*} methods, it is your responsibility + * to release the HTTP resources with {@lin...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java
@@ -70,6 +70,12 @@ public void shutdown() throws Exception { public void headers() throws Exception { this.server.enqueue(new MockResponse().setHeader("Content-Type", "text/plain").setBody("Hello Spring!")); + this.webClient.get().uri("/test") + .exchange() + .map(response -> { + response.close(); + ...
true
Other
spring-projects
spring-framework
16f3f8d28ff16e5d88fe2d349fc78b1a6512b1cb.json
Add close() method on HTTP client response Before this commit, there was no way to signal the HTTP client that we were done consuming the response. Without that, the underlying client library cannot know when it is safe to release the associated resources (e.g. the HTTP connection). This commit adds new `close()` met...
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientMockTests.java
@@ -0,0 +1,116 @@ +package org.springframework.web.reactive.function.client; + +import org.junit.Before; +import org.junit.Test; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; +import reactor.test.StepVerifier; + +import org.springframework.http.HttpHeaders; +import org.springframework.http.H...
true
Other
spring-projects
spring-framework
699dfc55a8964a9068e3c1494a161852c4d7a10a.json
Improve Kotlin ref doc structure Issue: SPR-15659
src/docs/asciidoc/kotlin.adoc
@@ -148,49 +148,12 @@ to know if a bean is required or not. `@Autowired lateinit var foo: Foo` implies of type `Foo` must be registered in the application context while `@Autowired lateinit var foo: Foo?` won’t raise an error if such bean does not exist. -== WebFlux functional DSL +== Bean definition DSL -Spring ...
false
Other
spring-projects
spring-framework
03eb6f76db2208e4283027fba338fe8da9dd755a.json
Improve check for actual return value type Issue: SPR-15910
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java
@@ -101,7 +101,8 @@ protected Mono<Void> writeBody(@Nullable Object body, MethodParameter bodyParame } else { publisher = Mono.justOrEmpty(body); - elementType = (bodyClass == null && body != null ? ResolvableType.forInstance(body) : bodyType); + elementType = ((bodyClass == null || bodyClass.equals(Objec...
false
Other
spring-projects
spring-framework
2969af82d258e9f03f0eb594afc987b83a872278.json
Fix Reactive Web link in the ref doc
src/docs/asciidoc/web.adoc
@@ -12,7 +12,7 @@ Chapters cover the Servlet-based <<mvc,Spring MVC>> web framework including <<mv <<mvc-cors,CORS>>, and <<websocket,WebSocket>> support. Note that as of Spring Framework 5.0 web applications can also run on a -<<spring-web-reactive, reactive web stack>> (Reactive Streams API + non-blocking runtime...
false
Other
spring-projects
spring-framework
ea274ebc0a355ffb499791a9abf1618b829c5edd.json
Fix decoding issue in Reactor TcpClient When decoding STOMP messages unread portions of a given input ByteBuf must be kept until more input is received and the next complete STOMP frame can be parsed. In Reactor Net 2.x this was handled for us through the "remainder" field in NettyChannelHandlerBridge. The Reactor Ne...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompReactorNettyCodec.java
@@ -15,28 +15,46 @@ */ package org.springframework.messaging.simp.stomp; -import org.springframework.messaging.tcp.reactor.ReactorNettyCodec; +import java.nio.ByteBuffer; +import java.util.List; + +import org.springframework.messaging.Message; +import org.springframework.messaging.tcp.reactor.AbstractNioBufferReac...
true
Other
spring-projects
spring-framework
ea274ebc0a355ffb499791a9abf1618b829c5edd.json
Fix decoding issue in Reactor TcpClient When decoding STOMP messages unread portions of a given input ByteBuf must be kept until more input is received and the next complete STOMP frame can be parsed. In Reactor Net 2.x this was handled for us through the "remainder" field in NettyChannelHandlerBridge. The Reactor Ne...
spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/AbstractNioBufferReactorNettyCodec.java
@@ -0,0 +1,53 @@ +/* + * Copyright 2002-2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
ea274ebc0a355ffb499791a9abf1618b829c5edd.json
Fix decoding issue in Reactor TcpClient When decoding STOMP messages unread portions of a given input ByteBuf must be kept until more input is received and the next complete STOMP frame can be parsed. In Reactor Net 2.x this was handled for us through the "remainder" field in NettyChannelHandlerBridge. The Reactor Ne...
spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyCodec.java
@@ -22,7 +22,6 @@ import io.netty.buffer.ByteBuf; import org.springframework.messaging.Message; -import org.springframework.util.Assert; /** * Simple holder for a decoding {@link Function} and an encoding @@ -31,28 +30,20 @@ * @author Rossen Stoyanchev * @since 5.0 */ -public class ReactorNettyCodec<P> {...
true
Other
spring-projects
spring-framework
ea274ebc0a355ffb499791a9abf1618b829c5edd.json
Fix decoding issue in Reactor TcpClient When decoding STOMP messages unread portions of a given input ByteBuf must be kept until more input is received and the next complete STOMP frame can be parsed. In Reactor Net 2.x this was handled for us through the "remainder" field in NettyChannelHandlerBridge. The Reactor Ne...
spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyTcpClient.java
@@ -16,13 +16,18 @@ package org.springframework.messaging.tcp.reactor; +import java.util.Collection; +import java.util.List; import java.util.function.BiFunction; import java.util.function.Consumer; import java.util.function.Function; +import io.netty.buffer.ByteBuf; +import io.netty.channel.ChannelHandlerCon...
true
Other
spring-projects
spring-framework
ea274ebc0a355ffb499791a9abf1618b829c5edd.json
Fix decoding issue in Reactor TcpClient When decoding STOMP messages unread portions of a given input ByteBuf must be kept until more input is received and the next complete STOMP frame can be parsed. In Reactor Net 2.x this was handled for us through the "remainder" field in NettyChannelHandlerBridge. The Reactor Ne...
spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyTcpConnection.java
@@ -58,7 +58,7 @@ public ReactorNettyTcpConnection(NettyInbound inbound, NettyOutbound outbound, @Override public ListenableFuture<Void> send(Message<P> message) { ByteBuf byteBuf = this.outbound.alloc().buffer(); - this.codec.getEncoder().accept(byteBuf, message); + this.codec.encode(message, byteBuf); Mon...
true
Other
spring-projects
spring-framework
cff311b03cbd2b092269dbeef79992c675527139.json
Remove outdated JpaExceptionTranslatorAspect Issue: SPR-15047
spring-aspects/src/main/java/org/springframework/orm/jpa/aspectj/JpaExceptionTranslatorAspect.aj
@@ -1,46 +0,0 @@ -/* - * Copyright 2002-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
false
Other
spring-projects
spring-framework
4cd330989041d1a2f3db3cc01ab015577fbff2dd.json
Remove snapshot repository reactor-netty-0.6.0.RELEASE on Maven Central depends on reactor-ipc-0.6.0.RELEASE so no need for this repository anymore. It may be needed to cleanup Gradle or Maven local cache since preliminary version of reactor-netty-0.6.0.RELEASE had a dependency on reactor-ipc-0.6.0.BUILD-SNAPSHOT.
build.gradle
@@ -172,7 +172,6 @@ configure(allprojects) { project -> repositories { maven { url "https://repo.spring.io/libs-release" } maven { url "https://repo.spring.io/milestone" } - maven { url "https://repo.spring.io/snapshot" } // reactor-netty still pulls reactor-ipc 0.6 snapshots } dependencies {
false
Other
spring-projects
spring-framework
546687d5e44c6771a95f5334dbcbf4b37a6cea33.json
Add Kotlin extension for RestTemplate Issue: SPR-15056
build.gradle
@@ -791,6 +791,7 @@ project("spring-web") { optional("javax.xml.bind:jaxb-api:${jaxbVersion}") optional("javax.xml.ws:jaxws-api:${jaxwsVersion}") optional("javax.mail:javax.mail-api:${javamailVersion}") + optional("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}") testCompile(project(":spring-context-s...
true
Other
spring-projects
spring-framework
546687d5e44c6771a95f5334dbcbf4b37a6cea33.json
Add Kotlin extension for RestTemplate Issue: SPR-15056
spring-web/src/main/kotlin/org/springframework/web/client/RestOperationsExtension.kt
@@ -0,0 +1,116 @@ +package org.springframework.web.client + +import org.springframework.http.HttpEntity +import org.springframework.http.HttpMethod +import org.springframework.http.RequestEntity +import java.net.URI + +/** + * Extension for [RestOperations] providing [KClass] based API and avoiding specifying + * a cla...
true
Other
spring-projects
spring-framework
3626a1c7f99a8026337a29bd8a958264e6bf13c0.json
Add Kotlin extensions for function Web API Issue: SPR-15054
build.gradle
@@ -858,6 +858,8 @@ project("spring-web-reactive") { optional("io.undertow:undertow-websockets-jsr:${undertowVersion}") { exclude group: "org.jboss.spec.javax.websocket", module: "jboss-websocket-api_1.1_spec" } + optional("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}") + optional("org.jetbrains.kot...
true
Other
spring-projects
spring-framework
3626a1c7f99a8026337a29bd8a958264e6bf13c0.json
Add Kotlin extensions for function Web API Issue: SPR-15054
spring-web-reactive/src/main/kotlin/org/springframework/web/reactive/function/BodyExtractorsExtension.kt
@@ -0,0 +1,39 @@ +package org.springframework.web.reactive.function + +import org.springframework.http.ReactiveHttpInputMessage +import reactor.core.publisher.Flux +import reactor.core.publisher.Mono +import kotlin.reflect.KClass + +/** + * Extension for [BodyExtactors] providing [KClass] based API and avoiding specify...
true
Other
spring-projects
spring-framework
3626a1c7f99a8026337a29bd8a958264e6bf13c0.json
Add Kotlin extensions for function Web API Issue: SPR-15054
spring-web-reactive/src/main/kotlin/org/springframework/web/reactive/function/BodyInsertersExtension.kt
@@ -0,0 +1,26 @@ +package org.springframework.web.reactive.function + +import org.reactivestreams.Publisher +import org.springframework.http.ReactiveHttpOutputMessage +import org.springframework.http.server.reactive.ServerHttpResponse + +/** + * Extension for [BodyInserters] providing [KClass] based API and avoiding sp...
true
Other
spring-projects
spring-framework
3626a1c7f99a8026337a29bd8a958264e6bf13c0.json
Add Kotlin extensions for function Web API Issue: SPR-15054
spring-web-reactive/src/main/kotlin/org/springframework/web/reactive/function/client/ClientResponseExtension.kt
@@ -0,0 +1,23 @@ +package org.springframework.web.reactive.function.client + +import reactor.core.publisher.Flux +import reactor.core.publisher.Mono +import kotlin.reflect.KClass + +/** + * Extension for [ClientResponse] providing [KClass] based API. + * + * @since 5.0 + */ +object ClientResponseExtension { + + /** + ...
true
Other
spring-projects
spring-framework
3626a1c7f99a8026337a29bd8a958264e6bf13c0.json
Add Kotlin extensions for function Web API Issue: SPR-15054
spring-web-reactive/src/main/kotlin/org/springframework/web/reactive/function/server/ServerRequestExtension.kt
@@ -0,0 +1,21 @@ +package org.springframework.web.reactive.function.server + +import kotlin.reflect.KClass + +/** + * Extension for [ServerRequest] providing [KClass] based API. + * + * @since 5.0 + */ +object ServerRequestExtension { + + /** + * @see ServerRequest.bodyToMono + */ + fun <T : Any> ServerRequest.bodyTo...
true
Other
spring-projects
spring-framework
1b8cdb89241290af2999dd073cf463cd30271537.json
Paramaterize WebSocket tests by client and server Issue: SPR-14527
spring-web-reactive/src/test/java/org/springframework/web/reactive/socket/server/AbstractWebSocketIntegrationTests.java
@@ -27,7 +27,10 @@ import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; +import reactor.core.publisher.Flux; +import reactor.util.function.Tuple3; +import org.springframework.context.Lifecycle; import org.springframework.conte...
true
Other
spring-projects
spring-framework
1b8cdb89241290af2999dd073cf463cd30271537.json
Paramaterize WebSocket tests by client and server Issue: SPR-14527
spring-web-reactive/src/test/java/org/springframework/web/reactive/socket/server/WebSocketIntegrationTests.java
@@ -15,13 +15,11 @@ */ package org.springframework.web.reactive.socket.server; -import java.net.URISyntaxException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicReference; import org.hamcrest.Matchers; -import org.junit.Ignore; import org.junit.Test; import org.r...
true
Other
spring-projects
spring-framework
b4b7b163d1197caa338ea17c026ee862526b0ef5.json
Add WebSocketClient for Undertow Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/adapter/UndertowWebSocketHandlerAdapter.java
@@ -26,9 +26,12 @@ import io.undertow.websockets.core.CloseMessage; import io.undertow.websockets.core.WebSocketChannel; import io.undertow.websockets.spi.WebSocketHttpExchange; + import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; +import reactor.core.publisher.MonoProcessor; + impo...
true
Other
spring-projects
spring-framework
b4b7b163d1197caa338ea17c026ee862526b0ef5.json
Add WebSocketClient for Undertow Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/client/UndertowWebSocketClient.java
@@ -0,0 +1,234 @@ +/* + * Copyright 2002-2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
b4b7b163d1197caa338ea17c026ee862526b0ef5.json
Add WebSocketClient for Undertow Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/server/upgrade/UndertowRequestUpgradeStrategy.java
@@ -17,7 +17,6 @@ package org.springframework.web.reactive.socket.server.upgrade; import java.security.Principal; -import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Optional;
true
Other
spring-projects
spring-framework
b4b7b163d1197caa338ea17c026ee862526b0ef5.json
Add WebSocketClient for Undertow Issue: SPR-14527
spring-web-reactive/src/test/java/org/springframework/web/reactive/socket/server/WebSocketIntegrationTests.java
@@ -32,6 +32,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpHeaders; +import org.springframework.http.server.reactive.bootstrap.RxNettyHttpServer; import org.springframework.web.reactive.HandlerMapping; impor...
true
Other
spring-projects
spring-framework
30ee71ea1a71e05ab7a725a8cda8d3c0b5c68d3a.json
Add WebSocketClient for Java WebSocket (JSR-356) Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/adapter/StandardEndpoint.java
@@ -0,0 +1,168 @@ +/* + * Copyright 2002-2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
30ee71ea1a71e05ab7a725a8cda8d3c0b5c68d3a.json
Add WebSocketClient for Java WebSocket (JSR-356) Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/adapter/StandardWebSocketHandlerAdapter.java
@@ -16,37 +16,21 @@ package org.springframework.web.reactive.socket.adapter; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import javax.websocket.CloseReason; import javax.websocket.Endpoint; -import javax.websocket.EndpointConfig; -import javax.websocket.PongMessage; -import javax.webs...
true
Other
spring-projects
spring-framework
30ee71ea1a71e05ab7a725a8cda8d3c0b5c68d3a.json
Add WebSocketClient for Java WebSocket (JSR-356) Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/client/StandardWebSocketClient.java
@@ -0,0 +1,160 @@ +/* + * Copyright 2002-2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
30ee71ea1a71e05ab7a725a8cda8d3c0b5c68d3a.json
Add WebSocketClient for Java WebSocket (JSR-356) Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/server/upgrade/TomcatRequestUpgradeStrategy.java
@@ -25,7 +25,6 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.websocket.Endpoint; -import javax.websocket.server.ServerEndpointConfig; import org.apache.tomcat.websocket.server.WsServerContainer; import reactor.core.publisher.Mono;
true
Other
spring-projects
spring-framework
30ee71ea1a71e05ab7a725a8cda8d3c0b5c68d3a.json
Add WebSocketClient for Java WebSocket (JSR-356) Issue: SPR-14527
spring-web-reactive/src/test/java/org/springframework/web/reactive/socket/server/WebSocketIntegrationTests.java
@@ -41,6 +41,7 @@ import org.springframework.web.reactive.socket.client.JettyWebSocketClient; import org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient; import org.springframework.web.reactive.socket.client.RxNettyWebSocketClient; +import org.springframework.web.reactive.socket.client.Standar...
true
Other
spring-projects
spring-framework
bd09a76a1eec053bd5a7533f67ecbb65fbe2b96d.json
Add WebSocketClient for Jetty Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/HandshakeInfo.java
@@ -37,13 +37,17 @@ public class HandshakeInfo { private final URI uri; - private final HttpHeaders headers; - private final Mono<Principal> principalMono; - private final Optional<String> protocol; + private HttpHeaders headers; + + private Optional<String> protocol; + public HandshakeInfo(URI uri, Mono<...
true
Other
spring-projects
spring-framework
bd09a76a1eec053bd5a7533f67ecbb65fbe2b96d.json
Add WebSocketClient for Jetty Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketHandlerAdapter.java
@@ -30,6 +30,7 @@ import org.eclipse.jetty.websocket.common.OpCode; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; +import reactor.core.publisher.MonoProcessor; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; @@ -...
true
Other
spring-projects
spring-framework
bd09a76a1eec053bd5a7533f67ecbb65fbe2b96d.json
Add WebSocketClient for Jetty Issue: SPR-14527
spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/client/JettyWebSocketClient.java
@@ -0,0 +1,171 @@ +/* + * Copyright 2002-2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
bd09a76a1eec053bd5a7533f67ecbb65fbe2b96d.json
Add WebSocketClient for Jetty Issue: SPR-14527
spring-web-reactive/src/test/java/org/springframework/web/reactive/socket/server/WebSocketIntegrationTests.java
@@ -38,6 +38,7 @@ import org.springframework.web.reactive.socket.WebSocketHandler; import org.springframework.web.reactive.socket.WebSocketMessage; import org.springframework.web.reactive.socket.WebSocketSession; +import org.springframework.web.reactive.socket.client.JettyWebSocketClient; import org.springframework...
true
Other
spring-projects
spring-framework
7b183048b8179ed4cc73abb0cd6b7ac449e482c3.json
Introduce SSE support in WebClient Issue: SPR-14539
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientStrategiesBuilder.java
@@ -36,6 +36,7 @@ import org.springframework.http.codec.HttpMessageReader; import org.springframework.http.codec.HttpMessageWriter; import org.springframework.http.codec.ResourceHttpMessageWriter; +import org.springframework.http.codec.ServerSentEventHttpMessageReader; import org.springframework.http.codec.json.Jac...
true
Other
spring-projects
spring-framework
7b183048b8179ed4cc73abb0cd6b7ac449e482c3.json
Introduce SSE support in WebClient Issue: SPR-14539
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/SseHandlerFunctionIntegrationTests.java
@@ -18,16 +18,19 @@ import java.time.Duration; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import org.junit.Before; import org.junit.Test; +import static org.springframework.http.MediaType.TEXT_EVENT_STREAM; +import static org.springframework.web.reactive.function.B...
true
Other
spring-projects
spring-framework
7b183048b8179ed4cc73abb0cd6b7ac449e482c3.json
Introduce SSE support in WebClient Issue: SPR-14539
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.java
@@ -18,16 +18,20 @@ import java.time.Duration; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import org.junit.Before; import org.junit.Test; +import static org.springframework.http.MediaType.TEXT_EVENT_STREAM; +import static org.springframework.web.reactive.function.B...
true
Other
spring-projects
spring-framework
b183934ed4a09d8f27b48fb492b6d3a614ddab43.json
Remove reference to PayloadApplicationEvent Issue: SPR-14594
src/asciidoc/core-beans.adoc
@@ -7978,8 +7978,8 @@ Essentially, this is the standard __Observer__ design pattern. As of Spring 4.2, the event infrastructure has been significantly improved and offer an <<context-functionality-events-annotation,annotation-based model>> as well as the ability to publish any arbitrary event, that is an object that...
false
Other
spring-projects
spring-framework
1cad98dd316475b1855c31ab28e705a89baadb28.json
Add setter for defaultPersistenceUnitRootLocation This commit adds a setter for the default persistence unit's defaultPersistenceUnitRootLocation attribute.
spring-orm/src/main/java/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBean.java
@@ -143,6 +143,18 @@ public void setPersistenceUnitName(String persistenceUnitName) { this.internalPersistenceUnitManager.setDefaultPersistenceUnitName(persistenceUnitName); } + /** + * Set the default persistence unit root location, to be applied + * if no unit-specific persistence unit root could be determin...
false
Other
spring-projects
spring-framework
e802f0e73111ea80fabe812e2f73d357f6823daa.json
Clarify use of Ehcache Since we have a dedicated section regarding Ehcache that is only applicable to Ehcache 2.x, this commit clarifies that Ehcache 3.x is JSR-107 compliant and the JCache support should be used with it rather than attempting to configure the Ehcache 2.x support.
src/asciidoc/integration.adoc
@@ -8050,10 +8050,10 @@ materialized by the `org.springframework.cache.Cache` and There are <<cache-store-configuration,a few implementations>> of that abstraction available out of the box: JDK `java.util.concurrent.ConcurrentMap` based caches, -http://ehcache.org/[EhCache], Gemfire cache, +http://ehcache.org/[Ehca...
false
Other
spring-projects
spring-framework
3f0b4586168c485fe3cd1134fdcce1d2e3f7a83f.json
Add aditional example to CronSequenceGenerator CronSequenceGenerator supports comma separated expressions but does not provide an example for it. This commit adds such an example. Closes gh-1132
spring-context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java
@@ -42,6 +42,7 @@ * <li>"0 0 * * * *" = the top of every hour of every day.</li> * <li>"*&#47;10 * * * * *" = every ten seconds.</li> * <li>"0 0 8-10 * * *" = 8, 9 and 10 o'clock of every day.</li> + * <li>"0 * 6,19 * * *" = 6:00 AM and 7:00 PM every day.</li> * <li>"0 0/30 8-10 * * *" = 8:00, 8:30, 9:00, 9:30 ...
false
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-core/src/test/java/org/springframework/core/codec/ByteBufferDecoderTests.java
@@ -21,11 +21,11 @@ import org.junit.Test; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; -import reactor.test.TestSubscriber; import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; import org.springframework.cor...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-core/src/test/java/org/springframework/core/codec/ByteBufferEncoderTests.java
@@ -23,11 +23,11 @@ import org.junit.Test; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; -import reactor.test.TestSubscriber; import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; import org.springframework.cor...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-core/src/test/java/org/springframework/core/codec/CharSequenceEncoderTests.java
@@ -21,11 +21,11 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import reactor.core.publisher.Flux; -import reactor.test.TestSubscriber; import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; import org.springf...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-core/src/test/java/org/springframework/core/codec/ResourceDecoderTests.java
@@ -20,14 +20,14 @@ import org.junit.Test; import reactor.core.publisher.Flux; -import reactor.test.TestSubscriber; import org.springframework.core.ResolvableType; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.InputStreamResource; import org.springframework.core.io.R...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-core/src/test/java/org/springframework/core/codec/ResourceEncoderTests.java
@@ -21,14 +21,14 @@ import org.junit.Test; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.core.ResolvableType; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.InputStreamResource; i...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-core/src/test/java/org/springframework/core/codec/StringDecoderTests.java
@@ -19,11 +19,11 @@ import org.junit.Test; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase; import org.springframework.core....
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferUtilsTests.java
@@ -24,7 +24,7 @@ import org.junit.Test; import reactor.core.publisher.Flux; -import reactor.test.TestSubscriber; +import org.springframework.tests.TestSubscriber; import static org.junit.Assert.*;
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-core/src/test/java/org/springframework/tests/TestSubscriber.java
@@ -0,0 +1,1164 @@ +/* + * Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licen...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/DispatcherHandlerErrorTests.java
@@ -24,7 +24,6 @@ import org.junit.Test; import org.reactivestreams.Publisher; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; @@ -39,6 +38,7 @@ import o...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/ResponseStatusExceptionHandlerTests.java
@@ -21,12 +21,12 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; import org.springframework.http.server.reactive.MockServerHttpRequest; import org....
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/HandlerMethodMappingTests.java
@@ -27,13 +27,13 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.http.HttpMethod; import org.springframework.http.server.reactive.MockServerHttpRequest; import org.springframework.http.server.reactive.MockServ...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/InvocableHandlerMethodTests.java
@@ -22,11 +22,11 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.http.HttpMethod; import org.springframework.http.server.reactive.MockServerHttpRequest; import org.springframework.http.server.reactive.MockServ...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMappingTests.java
@@ -30,7 +30,6 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.core.annotation.AnnotatedElementUtils; import org.springframework.core.annotation.AnnotationUtils; @@ -41,6 +40,7 @@ import org.springframework.ht...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/CookieValueMethodArgumentResolverTests.java
@@ -22,7 +22,6 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.core.MethodParameter; @@ -34,6 +33,7 @@ import org.springframewo...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/HttpEntityArgumentResolverTests.java
@@ -28,7 +28,6 @@ import reactor.adapter.RxJava1Adapter; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import rx.Observable; import rx.Single; @@ -46,6 +45,7 @@ import org.springframework.http.server.reactive.MockServerHttpRequest; import org.sprin...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageReaderArgumentResolverTests.java
@@ -35,7 +35,6 @@ import org.junit.Test; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import rx.Observable; import rx.Single; @@ -51,6 +50,7 @@ import org.springframework.http.codec.json.Jackson2JsonDecoder; import org.springframework.http.server....
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageWriterResultHandlerTests.java
@@ -33,7 +33,6 @@ import org.junit.Test; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import rx.Completable; import rx.Observable; @@ -53,6 +52,7 @@ import org.springframework.http.server.reactive.MockServerHttpRequest; import org.springframework....
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/PathVariableMethodArgumentResolverTests.java
@@ -24,7 +24,6 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.core.MethodParameter; import org.springframework.core.convert.ConversionService; @@ -33,6 +32,7 @@ import org.springframework.http.server.reactive...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestAttributeMethodArgumentResolverTests.java
@@ -22,7 +22,6 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.core.DefaultParameterNameDiscoverer; @@ -35,6 +34,7 @@ import or...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java
@@ -30,7 +30,6 @@ import reactor.adapter.RxJava1Adapter; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import rx.Observable; import rx.Single; @@ -44,6 +43,7 @@ import org.springframework.http.codec.HttpMessageReader; import org.springframework.htt...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestHeaderMethodArgumentResolverTests.java
@@ -27,7 +27,6 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.core.MethodParameter; @@ -38,6 +37,7 @@ import org.springframewo...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestParamMethodArgumentResolverTests.java
@@ -25,7 +25,6 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.core.LocalVariableTableParameterNameDiscoverer; import org.springframework.core.MethodParameter; @@ -38,6 +37,7 @@ import org.springframework.http...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java
@@ -27,7 +27,6 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import rx.Completable; import rx.Single; @@ -47,6 +46,7 @@ import org.springframework.http.server.reactive.MockServerHttpRequest; import org.springframework.http.server.rea...
true
Other
spring-projects
spring-framework
5531e807248e3155e7509bea9c1adcc58592157e.json
Anticipate reactor.test.TestSubscriber removal reactor.test.TestSubscriber will not be part of Reactor Core 3.0.0 since it needs to be refactored to fit all the needs expressed by the users. It is likely to be back later in one of the Reactor Core 3.0.x releases. This commit anticipate this removal by temporarily cop...
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SessionAttributeMethodArgumentResolverTests.java
@@ -22,7 +22,6 @@ import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Mono; -import reactor.test.TestSubscriber; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.core.DefaultParameterNameDiscoverer; @@ -35,6 +34,7 @@ import or...
true