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 | 22bea1da0129b6cb065b0402cae4e27ab4dd3297.json | Add sources and Javadoc to the build | spring-web-reactive/src/main/java/org/springframework/web/reactive/DispatcherHandler.java | @@ -39,14 +39,14 @@
* Central dispatcher for HTTP request handlers/controllers. Dispatches to registered
* handlers for processing a web request, providing convenient mapping facilities.
*
- * <li>It can use any {@link HandlerMapping} implementation to control the routing of
+ * <p>It can use any {@link HandlerMa... | true |
Other | spring-projects | spring-framework | 97af9998d5d4dbaa885776ae71b863afa8c89263.json | Refine exception handling
Refine exception handling responsibilities between the
DispatcherHandler and the HandlerAdapter. | spring-web-reactive/src/main/java/org/springframework/web/reactive/DispatcherHandler.java | @@ -117,35 +117,29 @@ public Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response)
logger.debug("Processing " + request.getMethod() + " request for [" + request.getURI() + "]");
}
return Flux.fromIterable(this.handlerMappings)
- .concatMap(m -> m.getHandler(request))
+ .concatMap(map... | true |
Other | spring-projects | spring-framework | 97af9998d5d4dbaa885776ae71b863afa8c89263.json | Refine exception handling
Refine exception handling responsibilities between the
DispatcherHandler and the HandlerAdapter. | spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerAdapter.java | @@ -16,44 +16,49 @@
package org.springframework.web.reactive;
-import org.reactivestreams.Publisher;
+import java.util.function.Function;
+
import reactor.Mono;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
/**
- * Int... | true |
Other | spring-projects | spring-framework | 97af9998d5d4dbaa885776ae71b863afa8c89263.json | Refine exception handling
Refine exception handling responsibilities between the
DispatcherHandler and the HandlerAdapter. | spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerResult.java | @@ -36,9 +36,7 @@ public class HandlerResult {
private final ResolvableType resultType;
- private final Throwable error;
-
- private Function<Throwable, Mono<HandlerResult>> exceptionMapper;
+ private Function<Throwable, Mono<HandlerResult>> exceptionHandler;
public HandlerResult(Object handler, Object resu... | true |
Other | spring-projects | spring-framework | 97af9998d5d4dbaa885776ae71b863afa8c89263.json | Refine exception handling
Refine exception handling responsibilities between the
DispatcherHandler and the HandlerAdapter. | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/annotation/RequestMappingHandlerAdapter.java | @@ -109,17 +109,15 @@ public Mono<HandlerResult> handle(ServerHttpRequest request, ServerHttpResponse
Object handler) {
HandlerMethod handlerMethod = (HandlerMethod) handler;
-
InvocableHandlerMethod invocable = new InvocableHandlerMethod(handlerMethod);
invocable.setHandlerMethodArgumentResolvers(this.a... | true |
Other | spring-projects | spring-framework | 70b8848492429399b76b7bb1f7ace64ac35c1d54.json | fix Streams to Stream in test | spring-web-reactive/src/test/java/org/springframework/web/reactive/method/annotation/RequestMappingIntegrationTests.java | @@ -29,7 +29,6 @@
import reactor.io.buffer.Buffer;
import reactor.rx.Promise;
import reactor.rx.Stream;
-import reactor.rx.Streams;
import rx.Observable;
import rx.Single;
@@ -359,7 +358,7 @@ private static class TestController {
@RequestMapping("/param")
@ResponseBody
public Publisher<String> handleWit... | false |
Other | spring-projects | spring-framework | 6c282096c68426c1f926ff3682a0bdca9a23ea21.json | Add RFC-5681 support to CacheControl
This commit adds the "stale-while-revalidate" and "stale-if-error"
Cache-Control directives in the `CacheControl` support class.
Issue: SPR-13841 | spring-web/src/main/java/org/springframework/http/CacheControl.java | @@ -65,6 +65,10 @@ public class CacheControl {
private boolean proxyRevalidate = false;
+ private long staleWhileRevalidate = -1;
+
+ private long staleIfError = -1;
+
private long sMaxAge = -1;
@@ -207,6 +211,36 @@ public CacheControl sMaxAge(long sMaxAge, TimeUnit unit) {
return this;
}
+ /**
+ ... | true |
Other | spring-projects | spring-framework | 6c282096c68426c1f926ff3682a0bdca9a23ea21.json | Add RFC-5681 support to CacheControl
This commit adds the "stale-while-revalidate" and "stale-if-error"
Cache-Control directives in the `CacheControl` support class.
Issue: SPR-13841 | spring-web/src/test/java/org/springframework/http/CacheControlTests.java | @@ -63,4 +63,17 @@ public void noStore() throws Exception {
CacheControl cc = CacheControl.noStore();
assertThat(cc.getHeaderValue(), Matchers.equalTo("no-store"));
}
+
+ @Test
+ public void staleIfError() throws Exception {
+ CacheControl cc = CacheControl.maxAge(1, TimeUnit.HOURS).staleIfError(2, TimeUnit.HO... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/build.gradle | @@ -20,9 +20,9 @@ group = 'org.springframework.reactive'
repositories {
mavenCentral()
- mavenLocal()
maven { url 'https://oss.jfrog.org/libs-snapshot' } // RxNetty 0.5.x snapshots
maven { url 'http://repo.spring.io/snapshot' } // Reactor snapshot
+ mavenLocal()
}
configurations.all {
@@ -32,7 +32,7 @@ c... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/Decoder.java | @@ -20,6 +20,7 @@
import java.util.List;
import org.reactivestreams.Publisher;
+import reactor.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.util.MimeType;
@@ -49,7 +50,7 @@
* @param hints Additional information about how to do decode, optional.
* @return the output stre... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/Encoder.java | @@ -20,6 +20,7 @@
import java.util.List;
import org.reactivestreams.Publisher;
+import reactor.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.util.MimeType;
@@ -49,7 +50,7 @@
* @param hints Additional information about how to do decode, optional.
* @return the output stre... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/ByteBufferDecoder.java | @@ -19,6 +19,7 @@
import java.nio.ByteBuffer;
import org.reactivestreams.Publisher;
+import reactor.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.util.MimeType;
@@ -42,10 +43,10 @@ public boolean canDecode(ResolvableType type, MimeType mimeType, Object... hints
}
@Overri... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/ByteBufferEncoder.java | @@ -19,6 +19,7 @@
import java.nio.ByteBuffer;
import org.reactivestreams.Publisher;
+import reactor.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.util.MimeType;
@@ -42,11 +43,11 @@ public boolean canEncode(ResolvableType type, MimeType mimeType, Object... hints
}
@Overri... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/JacksonJsonDecoder.java | @@ -23,7 +23,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.CodecException;
@... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/JacksonJsonEncoder.java | @@ -22,7 +22,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
import reactor.io.buffer.Buffer;
import org.springframework.core.ResolvableType;
@@ -61,10 +61,10 @@ public JacksonJsonEncoder(ObjectMapper mapper, Encode... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/Jaxb2Decoder.java | @@ -34,7 +34,7 @@
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
-import reactor.Publishers;
+import reactor.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.CodecException;
@@ -60,27 +60,27 @@ public Jaxb2Dec... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/Jaxb2Encoder.java | @@ -26,7 +26,7 @@
import javax.xml.bind.Marshaller;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
import reactor.io.buffer.Buffer;
import org.springframework.core.ResolvableType;
@@ -54,10 +54,10 @@ public Jaxb2Encoder() {
@Override
- public Publisher<ByteBuffer> ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/JsonObjectDecoder.java | @@ -25,7 +25,7 @@
import io.netty.buffer.ByteBufUtil;
import io.netty.buffer.Unpooled;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
import reactor.fn.Function;
import org.springframework.core.ResolvableType;
@@ -95,10 +95,10 @@ public JsonObjectDecoder(int maxObjectLeng... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/JsonObjectEncoder.java | @@ -23,15 +23,14 @@
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
+import reactor.Flux;
import reactor.core.subscriber.SubscriberBarrier;
import reactor.core.support.BackpressureUtils;
import reactor.io.buffer.Buffer;
import org.springframework.core.ResolvableType;
import org.s... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/StringDecoder.java | @@ -21,7 +21,7 @@
import java.nio.charset.StandardCharsets;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
import reactor.io.buffer.Buffer;
import org.springframework.core.ResolvableType;
@@ -48,7 +48,7 @@ public boolean canDecode(ResolvableType type, MimeType mimeType, ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/codec/support/StringEncoder.java | @@ -21,7 +21,7 @@
import java.nio.charset.StandardCharsets;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.util.MimeType;
@@ -49,7 +49,7 @@ public boolean canEncode(ResolvableType type, MimeType m... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/core/convert/support/ReactiveStreamsToReactorStreamConverter.java | @@ -31,7 +31,7 @@
* @author Stephane Maldini
* @author Sebastien Deleuze
*/
-public final class ReactiveStreamsToReactorConverter implements GenericConverter {
+public final class ReactiveStreamsToReactorStreamConverter implements GenericConverter {
@Override
public Set<GenericConverter.ConvertiblePair> get... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/ReactiveHttpInputMessage.java | @@ -19,6 +19,7 @@
import java.nio.ByteBuffer;
import org.reactivestreams.Publisher;
+import reactor.Flux;
/**
* An "reactive" HTTP input message that exposes the input as {@link Publisher}.
@@ -34,6 +35,6 @@ public interface ReactiveHttpInputMessage extends HttpMessage {
* Return the body of the message as ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/ReactiveHttpOutputMessage.java | @@ -19,6 +19,7 @@
import java.nio.ByteBuffer;
import org.reactivestreams.Publisher;
+import reactor.Mono;
/**
* A "reactive" HTTP output message that accepts output as a {@link Publisher}.
@@ -37,6 +38,6 @@ public interface ReactiveHttpOutputMessage extends HttpMessage {
* @param body the body content publi... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ErrorHandlingHttpHandler.java | @@ -18,8 +18,7 @@
import java.util.Arrays;
import java.util.List;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import org.springframework.util.Assert;
@@ -44,26 +43,24 @@ public ErrorHandlingHttpHandler(HttpHandler targetHandler, HttpExceptionHandler.
@Override... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/FilterChainHttpHandler.java | @@ -19,8 +19,7 @@
import java.util.Collections;
import java.util.List;
-import org.reactivestreams.Publisher;
-
+import reactor.Mono;
/**
* {@link HttpHandler} that delegates to a chain of {@link HttpFilter}s followed
@@ -40,7 +39,7 @@ public FilterChainHttpHandler(HttpHandler targetHandler, HttpFilter... filt... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/HttpExceptionHandler.java | @@ -15,7 +15,7 @@
*/
package org.springframework.http.server.reactive;
-import org.reactivestreams.Publisher;
+import reactor.Mono;
/**
* A contract for resolving exceptions from HTTP request handling.
@@ -38,6 +38,6 @@ public interface HttpExceptionHandler {
* @param ex the exception to handle
* @retur... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/HttpFilter.java | @@ -17,6 +17,7 @@
package org.springframework.http.server.reactive;
import org.reactivestreams.Publisher;
+import reactor.Mono;
/**
* Contract for interception-style, chained processing of HTTP requests.
@@ -40,7 +41,7 @@ public interface HttpFilter {
* @param chain provides a way to delegate to the next Ht... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/HttpFilterChain.java | @@ -15,8 +15,7 @@
*/
package org.springframework.http.server.reactive;
-import org.reactivestreams.Publisher;
-
+import reactor.Mono;
/**
* Represents a chain of {@link HttpFilter}s allowing each {@link HttpFilter} to
@@ -32,6 +31,6 @@ public interface HttpFilterChain {
* @param response current HTTP respo... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/HttpHandler.java | @@ -16,7 +16,7 @@
package org.springframework.http.server.reactive;
-import org.reactivestreams.Publisher;
+import reactor.Mono;
/**
* Contract for handling HTTP requests in a non-blocking way.
@@ -35,6 +35,6 @@ public interface HttpHandler {
* @param response current HTTP response.
* @return Publisher ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/HttpHandlerDecorator.java | @@ -15,7 +15,7 @@
*/
package org.springframework.http.server.reactive;
-import org.reactivestreams.Publisher;
+import reactor.Mono;
import org.springframework.util.Assert;
@@ -40,7 +40,7 @@ public HttpHandler getDelegate() {
@Override
- public Publisher<Void> handle(ServerHttpRequest request, ServerHttp... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/InternalServerErrorExceptionHandler.java | @@ -15,8 +15,7 @@
*/
package org.springframework.http.server.reactive;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import org.springframework.http.HttpStatus;
@@ -29,9 +28,9 @@ public class InternalServerErrorExceptionHandler implements HttpExceptionHandler
@... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorHttpHandlerAdapter.java | @@ -15,14 +15,11 @@
*/
package org.springframework.http.server.reactive;
-import org.reactivestreams.Publisher;
+import reactor.Mono;
import reactor.io.buffer.Buffer;
import reactor.io.net.ReactiveChannelHandler;
import reactor.io.net.http.HttpChannel;
-import org.springframework.http.server.reactive.HttpHand... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpRequest.java | @@ -19,8 +19,7 @@
import java.net.URISyntaxException;
import java.nio.ByteBuffer;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
import reactor.io.buffer.Buffer;
import reactor.io.net.http.HttpChannel;
@@ -82,8 +81,8 @@ public HttpHeaders getHeaders() {
}
@Overrid... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpResponse.java | @@ -19,7 +19,8 @@
import java.util.List;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
+import reactor.Mono;
import reactor.io.buffer.Buffer;
import reactor.io.net.http.HttpChannel;
import reactor.io.net.http.model.Status;
@@ -64,12 +65,12 @@ public HttpHeaders getHeader... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/RxNettyServerHttpRequest.java | @@ -23,6 +23,7 @@
import io.netty.buffer.ByteBuf;
import io.reactivex.netty.protocol.http.server.HttpServerRequest;
import org.reactivestreams.Publisher;
+import reactor.Flux;
import reactor.core.publisher.convert.RxJava1Converter;
import rx.Observable;
@@ -85,7 +86,7 @@ public HttpHeaders getHeaders() {
}
... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/RxNettyServerHttpResponse.java | @@ -22,7 +22,8 @@
import io.netty.handler.codec.http.HttpResponseStatus;
import io.reactivex.netty.protocol.http.server.HttpServerResponse;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
+import reactor.Mono;
import reactor.core.publisher.convert.RxJava1Converter;
import rx... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServletHttpHandlerAdapter.java | @@ -36,6 +36,7 @@
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
+import reactor.Mono;
import org.springframework.http.HttpStatus;
import org.springframework.util.Assert;
@@ -73,7 +74,7 @@ protected void service(HttpServletRequest servletRequ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServletServerHttpRequest.java | @@ -25,6 +25,7 @@
import javax.servlet.http.HttpServletRequest;
import org.reactivestreams.Publisher;
+import reactor.Flux;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
@@ -46,14 +47,14 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
privat... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServletServerHttpResponse.java | @@ -22,7 +22,8 @@
import javax.servlet.http.HttpServletResponse;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
+import reactor.Mono;
import org.springframework.http.ExtendedHttpHeaders;
import org.springframework.http.HttpHeaders;
@@ -38,13 +39,13 @@ public class Servle... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.java | @@ -35,7 +35,8 @@
import org.xnio.ChannelListener;
import org.xnio.channels.StreamSinkChannel;
import org.xnio.channels.StreamSourceChannel;
-import reactor.core.error.SpecificationExceptions;
+import reactor.Mono;
+import reactor.core.error.Exceptions;
import reactor.core.subscriber.BaseSubscriber;
import reactor... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.java | @@ -23,6 +23,7 @@
import io.undertow.server.HttpServerExchange;
import io.undertow.util.HeaderValues;
import org.reactivestreams.Publisher;
+import reactor.Flux;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
@@ -42,14 +43,14 @@ public class UndertowServerHttpRequest imp... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java | @@ -23,7 +23,8 @@
import io.undertow.server.HttpServerExchange;
import io.undertow.util.HttpString;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
+import reactor.Mono;
import org.springframework.http.ExtendedHttpHeaders;
import org.springframework.http.HttpHeaders;
@@ -4... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/util/ByteBufferPublisherInputStream.java | @@ -23,7 +23,7 @@
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscription;
-import reactor.Publishers;
+import reactor.rx.Streams;
/**
* {@code InputStream} implementation based on a byte array {@link Publisher}.
@@ -60,7 +60,7 @@ public ByteBufferPublisherInputStream(Publisher<ByteBuffer... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/DispatcherHandler.java | @@ -23,10 +23,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.reactivestreams.Publisher;
-import org.reactivestreams.Subscriber;
-import reactor.Publishers;
-import reactor.fn.BiConsumer;
+import reactor.Flux;
+import reactor.Mono;
import org.springframework.... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerAdapter.java | @@ -17,6 +17,7 @@
package org.springframework.web.reactive;
import org.reactivestreams.Publisher;
+import reactor.Mono;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
@@ -54,7 +55,7 @@ public interface HandlerAdapter {
* ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerMapping.java | @@ -16,7 +16,7 @@
package org.springframework.web.reactive;
-import org.reactivestreams.Publisher;
+import reactor.Mono;
import org.springframework.http.server.reactive.ServerHttpRequest;
@@ -32,8 +32,8 @@ public interface HandlerMapping {
/**
* Return a handler for this request.
* @param request curr... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerResult.java | @@ -17,10 +17,8 @@
package org.springframework.web.reactive;
import java.util.function.Function;
-import java.util.logging.Handler;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import org.springframework.core.ResolvableType;
import org.springframework.util.Assert;
@... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerResultHandler.java | @@ -16,7 +16,7 @@
package org.springframework.web.reactive;
-import org.reactivestreams.Publisher;
+import reactor.Mono;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
@@ -42,13 +42,13 @@ public interface HandlerResultHandl... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/ResponseStatusExceptionHandler.java | @@ -15,8 +15,7 @@
*/
package org.springframework.web.reactive;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import org.springframework.http.server.reactive.HttpExceptionHandler;
import org.springframework.http.server.reactive.ServerHttpRequest;
@@ -32,12 +31,12 @@ pu... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/handler/HttpHandlerAdapter.java | @@ -17,7 +17,7 @@
package org.springframework.web.reactive.handler;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import org.springframework.core.ResolvableType;
import org.springframework.http.server.reactive.ServerHttpRequest;
@@ -50,12 +50,12 @@ public boolean suppor... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/handler/SimpleHandlerResultHandler.java | @@ -17,7 +17,7 @@
package org.springframework.web.reactive.handler;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import org.springframework.core.Ordered;
import org.springframework.core.ResolvableType;
@@ -74,17 +74,17 @@ private boolean isConvertibleToPublisher(Resolv... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/handler/SimpleUrlHandlerMapping.java | @@ -19,8 +19,8 @@
import java.util.HashMap;
import java.util.Map;
-import org.reactivestreams.Publisher;
-import reactor.core.publisher.PublisherFactory;
+import reactor.Flux;
+import reactor.Mono;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.web.reactive.Handler... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/HandlerMethodArgumentResolver.java | @@ -16,7 +16,7 @@
package org.springframework.web.reactive.method;
-import org.reactivestreams.Publisher;
+import reactor.Mono;
import org.springframework.core.MethodParameter;
import org.springframework.http.server.reactive.ServerHttpRequest;
@@ -39,6 +39,6 @@ public interface HandlerMethodArgumentResolver {
... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/InvocableHandlerMethod.java | @@ -21,15 +21,13 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import r... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/annotation/RequestBodyArgumentResolver.java | @@ -20,7 +20,8 @@
import java.util.List;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
+import reactor.Mono;
import org.springframework.core.MethodParameter;
import org.springframework.core.ResolvableType;
@@ -57,14 +58,14 @@ public boolean supportsParameter(MethodParam... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/annotation/RequestMappingHandlerAdapter.java | @@ -25,8 +25,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
+import reactor.Mono;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.core.codec.D... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/annotation/RequestMappingHandlerMapping.java | @@ -27,8 +27,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.reactivestreams.Publisher;
-import reactor.core.publisher.PublisherFactory;
+import reactor.Flux;
+import reactor.Mono;
import org.springframework.beans.factory.InitializingBean;
import org.springf... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/annotation/RequestParamArgumentResolver.java | @@ -16,11 +16,7 @@
package org.springframework.web.reactive.method.annotation;
-
-import java.util.Optional;
-
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import org.springframework.core.MethodParameter;
import org.springframework.http.server.reactive.ServerHttpRequ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/annotation/ResponseBodyResultHandler.java | @@ -28,7 +28,7 @@
import java.util.stream.Collectors;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import org.springframework.core.Ordered;
import org.springframework.core.ResolvableType;
@@ -127,12 +127,12 @@ public boolean supports(HandlerResult result) {
@Overri... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/EchoHandler.java | @@ -16,19 +16,15 @@
package org.springframework.http.server.reactive;
-import org.reactivestreams.Publisher;
-
-import org.springframework.http.server.reactive.HttpHandler;
-import org.springframework.http.server.reactive.ServerHttpRequest;
-import org.springframework.http.server.reactive.ServerHttpResponse;
+impo... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ErrorHandlingHttpHandlerTests.java | @@ -17,12 +17,11 @@
import java.net.URI;
-import java.util.concurrent.TimeUnit;
import org.junit.Before;
import org.junit.Test;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import reactor.rx.Streams;
import reactor.rx.stream.Signal;
@@ -56,8 +55,7 @@ public void ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/FilterChainHttpHandlerTests.java | @@ -16,15 +16,11 @@
package org.springframework.http.server.reactive;
-import java.util.concurrent.TimeUnit;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Before;
import org.junit.Test;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/MockServerHttpRequest.java | @@ -19,6 +19,7 @@
import java.nio.ByteBuffer;
import org.reactivestreams.Publisher;
+import reactor.Flux;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
@@ -34,7 +35,7 @@ public class MockServerHttpRequest implements ServerHttpRequest {
private HttpHeaders headers =... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/MockServerHttpResponse.java | @@ -18,7 +18,8 @@
import java.nio.ByteBuffer;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
+import reactor.Mono;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
@@ -50,9 +51,9 @@ public HttpHeaders getHeaders() {
}
@Overri... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/RandomHandler.java | @@ -21,11 +21,10 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
+import reactor.Mono;
import reactor.io.buffer.Buffer;
-import reactor.rx.Streams;
imp... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/WriteWithOperatorTests.java | @@ -27,14 +27,12 @@
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
-import reactor.Publishers;
-import reactor.core.publisher.PublisherFactory;
+import reactor.Flux;
import reactor.core.subscriber.SubscriberBarrier;
import reactor.rx.Streams;
... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/http/server/reactive/XmlHandler.java | @@ -22,7 +22,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.reactivestreams.Publisher;
+import reactor.Mono;
import reactor.io.buffer.Buffer;
import reactor.rx.Streams;
@@ -40,7 +40,7 @@ public class XmlHandler implements HttpHandler {
private static fina... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/decoder/ByteBufferDecoderTests.java | @@ -49,8 +49,8 @@ public void decode() throws InterruptedException {
ByteBuffer fooBuffer = Buffer.wrap("foo").byteBuffer();
ByteBuffer barBuffer = Buffer.wrap("bar").byteBuffer();
Stream<ByteBuffer> source = Streams.just(fooBuffer, barBuffer);
- List<ByteBuffer> results = Streams.wrap(decoder.decode(source,
... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/decoder/JacksonJsonDecoderTests.java | @@ -48,8 +48,8 @@ public void canDecode() {
@Test
public void decode() throws InterruptedException {
Stream<ByteBuffer> source = Streams.just(Buffer.wrap("{\"foo\": \"foofoo\", \"bar\": \"barbar\"}").byteBuffer());
- List<Object> results = Streams.wrap(decoder.decode(source, ResolvableType.forClass(Pojo.class),... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/decoder/Jaxb2DecoderTests.java | @@ -49,8 +49,8 @@ public void canDecode() {
@Test
public void decode() throws InterruptedException {
Stream<ByteBuffer> source = Streams.just(Buffer.wrap("<?xml version=\"1.0\" encoding=\"UTF-8\"?><pojo><bar>barbar</bar><foo>foofoo</foo></pojo>").byteBuffer());
- List<Object> results = Streams.wrap(decoder.deco... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/decoder/JsonObjectDecoderTests.java | @@ -37,11 +37,11 @@ public class JsonObjectDecoderTests {
public void decodeSingleChunkToJsonObject() throws InterruptedException {
JsonObjectDecoder decoder = new JsonObjectDecoder();
Stream<ByteBuffer> source = Streams.just(Buffer.wrap("{\"foo\": \"foofoo\", \"bar\": \"barbar\"}").byteBuffer());
- List<Strin... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/decoder/StringDecoderTests.java | @@ -49,8 +49,8 @@ public void canDecode() {
@Test
public void decode() throws InterruptedException {
Stream<ByteBuffer> source = Streams.just(Buffer.wrap("foo").byteBuffer(), Buffer.wrap("bar").byteBuffer());
- List<String> results = Streams.wrap(decoder.decode(source,
- ResolvableType.forClassWithGenerics(P... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/encoder/ByteBufferEncoderTests.java | @@ -49,8 +49,8 @@ public void decode() throws InterruptedException {
ByteBuffer fooBuffer = Buffer.wrap("foo").byteBuffer();
ByteBuffer barBuffer = Buffer.wrap("bar").byteBuffer();
Stream<ByteBuffer> source = Streams.just(fooBuffer, barBuffer);
- List<ByteBuffer> results = Streams.wrap(encoder.encode(source,
... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/encoder/JacksonJsonEncoderTests.java | @@ -46,11 +46,11 @@ public void canWrite() {
@Test
public void write() throws InterruptedException {
Stream<Pojo> source = Streams.just(new Pojo("foofoo", "barbar"), new Pojo("foofoofoo", "barbarbar"));
- List<String> results = Streams.wrap(encoder.encode(source, null, null)).map(chunk -> {
+ List<String> resu... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/encoder/Jaxb2EncoderTests.java | @@ -47,11 +47,11 @@ public void canEncode() {
@Test
public void encode() throws InterruptedException {
Stream<Pojo> source = Streams.just(new Pojo("foofoo", "barbar"), new Pojo("foofoofoo", "barbarbar"));
- List<String> results = Streams.wrap(encoder.encode(source, null, null)).map(chunk -> {
+ List<String> re... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/encoder/JsonObjectEncoderTests.java | @@ -37,11 +37,11 @@ public class JsonObjectEncoderTests {
public void encodeSingleElement() throws InterruptedException {
JsonObjectEncoder encoder = new JsonObjectEncoder();
Stream<ByteBuffer> source = Streams.just(Buffer.wrap("{\"foo\": \"foofoo\", \"bar\": \"barbar\"}").byteBuffer());
- List<String> results... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/reactive/codec/encoder/StringEncoderTests.java | @@ -45,12 +45,12 @@ public void canWrite() {
@Test
public void write() throws InterruptedException {
- List<String> results = Streams.wrap(encoder.encode(Streams.just("foo"), null, null))
+ List<String> results = Streams.from(encoder.encode(Streams.just("foo"), null, null))
.map(chunk -> {
byte[] b =... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/web/reactive/DispatcherHandlerErrorTests.java | @@ -19,12 +19,11 @@
import java.nio.ByteBuffer;
import java.util.Collections;
import java.util.List;
-import java.util.concurrent.TimeUnit;
import org.junit.Before;
import org.junit.Test;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import reactor.rx.Streams;
import ... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/web/reactive/ResponseStatusExceptionHandlerTests.java | @@ -60,7 +60,7 @@ public void handleException() throws Exception {
Throwable ex = new ResponseStatusException(HttpStatus.BAD_REQUEST);
Publisher<Void> publisher = this.handler.handle(this.request, this.response, ex);
- Streams.wrap(publisher).toList().await(5, TimeUnit.SECONDS);
+ Streams.from(publisher).toLi... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/web/reactive/handler/SimpleHandlerResultHandlerTests.java | @@ -28,7 +28,7 @@
import org.springframework.core.ResolvableType;
import org.springframework.core.convert.support.GenericConversionService;
import org.springframework.core.convert.support.ReactiveStreamsToCompletableFutureConverter;
-import org.springframework.core.convert.support.ReactiveStreamsToReactorConverter;
... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/web/reactive/handler/SimpleUrlHandlerMappingIntegrationTests.java | @@ -22,8 +22,7 @@
import java.util.Map;
import org.junit.Test;
-import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import reactor.io.buffer.Buffer;
import reactor.rx.Streams;
@@ -136,25 +135,25 @@ public TestHandlerMapping() {
private static class FooHandler implements Htt... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/web/reactive/method/InvocableHandlerMethodTests.java | @@ -21,12 +21,12 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
-import java.util.concurrent.TimeUnit;
import org.junit.Before;
import org.junit.Test;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Flux;
+import reactor.Mono;
import reactor.r... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/web/reactive/method/annotation/RequestMappingHandlerMappingTests.java | @@ -18,7 +18,6 @@
import java.net.URI;
import java.util.List;
-import java.util.concurrent.TimeUnit;
import org.junit.Before;
import org.junit.Test;
@@ -78,7 +77,7 @@ public void method() throws Exception {
private HandlerMethod toHandlerMethod(Publisher<?> handlerPublisher) throws InterruptedException {
... | true |
Other | spring-projects | spring-framework | 8ef7e2ff77f913773e30b1463d4657368db700e5.json | Use Reactor 2.5 Flux and Mono Rx light API
Flux and Mono are used both for implementation and exposed at API
level to express 1 versus N semantic and to provide default Rx
operators:
- Flux<T> for multiple values Publisher (issue #48)
- Mono<T> for single value Publisher (issue #50)
- Mono<Void> for Publisher with no ... | spring-web-reactive/src/test/java/org/springframework/web/reactive/method/annotation/RequestMappingIntegrationTests.java | @@ -25,10 +25,9 @@
import org.junit.Test;
import org.reactivestreams.Publisher;
-import reactor.Publishers;
+import reactor.Mono;
import reactor.io.buffer.Buffer;
import reactor.rx.Promise;
-import reactor.rx.Promises;
import reactor.rx.Stream;
import reactor.rx.Streams;
import rx.Observable;
@@ -46,7 +45,7 @@... | true |
Other | spring-projects | spring-framework | 473cf9c40e266a416930249569550d19e92c2494.json | Preserve ETag HTTP header for versioned resources
Prior to this change, a resource handler chain configured with a
`VersionResourceResolver` would add the resource version to the request
attributes when serving that resource. This approach would not work when
a `CachingResourceResolver` is configured and the resource ... | spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * 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.
@@ -266,7 +266,6 @@ public void handleRequest(H... | true |
Other | spring-projects | spring-framework | 473cf9c40e266a416930249569550d19e92c2494.json | Preserve ETag HTTP header for versioned resources
Prior to this change, a resource handler chain configured with a
`VersionResourceResolver` would add the resource version to the request
attributes when serving that resource. This approach would not work when
a `CachingResourceResolver` is configured and the resource ... | spring-webmvc/src/main/java/org/springframework/web/servlet/resource/VersionResourceResolver.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * 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.
@@ -16,14 +16,21 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | 473cf9c40e266a416930249569550d19e92c2494.json | Preserve ETag HTTP header for versioned resources
Prior to this change, a resource handler chain configured with a
`VersionResourceResolver` would add the resource version to the request
attributes when serving that resource. This approach would not work when
a `CachingResourceResolver` is configured and the resource ... | spring-webmvc/src/main/java/org/springframework/web/servlet/resource/VersionedResource.java | @@ -0,0 +1,32 @@
+/*
+ * 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 | 473cf9c40e266a416930249569550d19e92c2494.json | Preserve ETag HTTP header for versioned resources
Prior to this change, a resource handler chain configured with a
`VersionResourceResolver` would add the resource version to the request
attributes when serving that resource. This approach would not work when
a `CachingResourceResolver` is configured and the resource ... | spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandlerTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * 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.
@@ -87,15 +87,13 @@ public void setUp() throws ... | true |
Other | spring-projects | spring-framework | 473cf9c40e266a416930249569550d19e92c2494.json | Preserve ETag HTTP header for versioned resources
Prior to this change, a resource handler chain configured with a
`VersionResourceResolver` would add the resource version to the request
attributes when serving that resource. This approach would not work when
a `CachingResourceResolver` is configured and the resource ... | spring-webmvc/src/test/java/org/springframework/web/servlet/resource/VersionResourceResolverTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * 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.
@@ -28,6 +28,7 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpResponse.java | @@ -25,7 +25,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
-import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.Assert;
/**
@@ -67,9 +66,11 @@ public Publisher<Void> writeHeaders() {
}
@Override
- public Publis... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/RxNettyServerHttpRequest.java | @@ -28,7 +28,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
-import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.Assert;
/** | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/RxNettyServerHttpResponse.java | @@ -28,7 +28,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
-import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.Assert;
/**
@@ -72,10 +71,12 @@ public Publisher<Void> writeHeaders() {
@Override
public Publisher... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ServletServerHttpResponse.java | @@ -83,9 +83,11 @@ public Publisher<Void> writeHeaders() {
}
@Override
- public Publisher<Void> setBody(final Publisher<ByteBuffer> contentPublisher) {
- applyHeaders();
- return (s -> contentPublisher.subscribe(subscriber));
+ public Publisher<Void> setBody(final Publisher<ByteBuffer> publisher) {
+ return Pu... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java | @@ -38,6 +38,7 @@
import org.reactivestreams.Subscription;
import org.xnio.ChannelListener;
import org.xnio.channels.StreamSinkChannel;
+import reactor.Publishers;
import reactor.core.subscriber.BaseSubscriber;
import static org.xnio.ChannelListeners.closingChannelExceptionHandler;
@@ -74,13 +75,6 @@ public void... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/WriteWithOperator.java | @@ -97,7 +97,7 @@ public void doNext(T item) {
else if (this.beforeFirstEmission) {
this.item = item;
this.beforeFirstEmission = false;
- writeFunction.apply(this).subscribe(downstream());
+ writeFunction.apply(this).subscribe(new DownstreamBridge(downstream()));
}
else {
subscr... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/web/reactive/DispatcherHandler.java | @@ -129,8 +129,24 @@ public Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse resp
});
Publisher<Void> completionPublisher = Publishers.concatMap(resultPublisher, result -> {
- HandlerResultHandler handler = getResultHandler(result);
- return handler.handleResult(request, response, result... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerResult.java | @@ -16,11 +16,17 @@
package org.springframework.web.reactive;
+import java.util.function.Function;
+import java.util.logging.Handler;
+
+import org.reactivestreams.Publisher;
+import reactor.Publishers;
+
import org.springframework.core.ResolvableType;
import org.springframework.util.Assert;
/**
- * Represent... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/InvocableHandlerMethod.java | @@ -62,6 +62,10 @@ public InvocableHandlerMethod(HandlerMethod handlerMethod) {
super(handlerMethod);
}
+ public InvocableHandlerMethod(Object bean, Method method) {
+ super(bean, method);
+ }
+
public void setHandlerMethodArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
this.resolvers.... | true |
Other | spring-projects | spring-framework | 34eb6d54263cd0ae426f021f98092e6daacbcd70.json | Add support for @ExceptionHandler methods | spring-web-reactive/src/main/java/org/springframework/web/reactive/method/annotation/RequestMappingHandlerAdapter.java | @@ -16,47 +16,65 @@
package org.springframework.web.reactive.method.annotation;
+import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import org.apache.commons.logging.Log;
+import o... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.