Browse Source

Move Body[Inserter|Extractor] to web.reactive.function

pull/1270/merge
Arjen Poutsma 8 years ago
parent
commit
97558ab4de
  1. 3
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/BodyExtractor.java
  2. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/BodyExtractors.java
  3. 3
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/BodyInserter.java
  4. 5
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/BodyInserters.java
  5. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/ClientRequest.java
  6. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java
  7. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/DefaultClientRequestBuilder.java
  8. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/DefaultClientResponse.java
  9. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/DefaultServerRequest.java
  10. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/DefaultServerResponseBuilder.java
  11. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
  12. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/ResourceHandlerFunction.java
  13. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java
  14. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/ServerResponse.java
  15. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/support/ServerRequestWrapper.java
  16. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/FlushingIntegrationTests.java
  17. 5
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/BodyExtractorsTests.java
  18. 7
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/BodyInsertersTests.java
  19. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/client/DefaultClientRequestBuilderTests.java
  20. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/client/DefaultClientResponseTests.java
  21. 8
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java
  22. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/DefaultServerRequestTests.java
  23. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/DispatcherHandlerIntegrationTests.java
  24. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/MockServerRequest.java
  25. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/PublisherHandlerFunctionIntegrationTests.java
  26. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/RouterFunctionTests.java
  27. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/SseHandlerFunctionIntegrationTests.java
  28. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.java
  29. 0
      spring-web-reactive/src/test/resources/org/springframework/web/reactive/function/response.txt

3
spring-web/src/main/java/org/springframework/http/codec/BodyExtractor.java → spring-web-reactive/src/main/java/org/springframework/web/reactive/function/BodyExtractor.java

@ -14,12 +14,13 @@ @@ -14,12 +14,13 @@
* limitations under the License.
*/
package org.springframework.http.codec;
package org.springframework.web.reactive.function;
import java.util.function.Supplier;
import java.util.stream.Stream;
import org.springframework.http.ReactiveHttpInputMessage;
import org.springframework.http.codec.HttpMessageReader;
/**
* A function that can extract data from a {@link ReactiveHttpInputMessage} body.

4
spring-web/src/main/java/org/springframework/http/codec/BodyExtractors.java → spring-web-reactive/src/main/java/org/springframework/web/reactive/function/BodyExtractors.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.codec;
package org.springframework.web.reactive.function;
import java.util.Collections;
import java.util.List;
@ -32,6 +32,8 @@ import org.springframework.core.io.buffer.DataBuffer; @@ -32,6 +32,8 @@ import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.HttpMessage;
import org.springframework.http.MediaType;
import org.springframework.http.ReactiveHttpInputMessage;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.UnsupportedMediaTypeException;
import org.springframework.util.Assert;
/**

3
spring-web/src/main/java/org/springframework/http/codec/BodyInserter.java → spring-web-reactive/src/main/java/org/springframework/web/reactive/function/BodyInserter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.codec;
package org.springframework.web.reactive.function;
import java.util.function.Supplier;
import java.util.stream.Stream;
@ -22,6 +22,7 @@ import java.util.stream.Stream; @@ -22,6 +22,7 @@ import java.util.stream.Stream;
import reactor.core.publisher.Mono;
import org.springframework.http.ReactiveHttpOutputMessage;
import org.springframework.http.codec.HttpMessageWriter;
/**
* A combination of functions that can populate a {@link ReactiveHttpOutputMessage} body.

5
spring-web/src/main/java/org/springframework/http/codec/BodyInserters.java → spring-web-reactive/src/main/java/org/springframework/web/reactive/function/BodyInserters.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.codec;
package org.springframework.web.reactive.function;
import java.util.Collections;
import java.util.List;
@ -30,6 +30,9 @@ import org.springframework.core.io.Resource; @@ -30,6 +30,9 @@ import org.springframework.core.io.Resource;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.MediaType;
import org.springframework.http.ReactiveHttpOutputMessage;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.codec.ServerSentEvent;
import org.springframework.http.codec.UnsupportedMediaTypeException;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.Assert;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/ClientRequest.java

@ -27,9 +27,9 @@ import org.springframework.http.HttpHeaders; @@ -27,9 +27,9 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ClientHttpRequest;
import org.springframework.http.codec.BodyInserter;
import org.springframework.util.Assert;
import org.springframework.util.MultiValueMap;
import org.springframework.web.reactive.function.BodyInserter;
import org.springframework.web.util.DefaultUriTemplateHandler;
import org.springframework.web.util.UriTemplateHandler;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java

@ -27,7 +27,7 @@ import org.springframework.http.HttpHeaders; @@ -27,7 +27,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.codec.BodyExtractor;
import org.springframework.web.reactive.function.BodyExtractor;
/**
* Represents an HTTP response, as returned by the {@link WebClient}.

4
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/DefaultClientRequestBuilder.java

@ -33,13 +33,13 @@ import org.springframework.http.HttpHeaders; @@ -33,13 +33,13 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ClientHttpRequest;
import org.springframework.http.codec.BodyInserter;
import org.springframework.http.codec.BodyInserters;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.reactive.function.BodyInserter;
import org.springframework.web.reactive.function.BodyInserters;
/**
* Default implementation of {@link ClientRequest.BodyBuilder}.

4
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/client/DefaultClientResponse.java

@ -32,9 +32,9 @@ import org.springframework.http.HttpHeaders; @@ -32,9 +32,9 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.codec.BodyExtractor;
import org.springframework.http.codec.BodyExtractors;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.web.reactive.function.BodyExtractor;
import org.springframework.web.reactive.function.BodyExtractors;
/**
* Default implementation of {@link ClientResponse}.

4
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/DefaultServerRequest.java

@ -34,11 +34,11 @@ import org.springframework.http.HttpHeaders; @@ -34,11 +34,11 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRange;
import org.springframework.http.MediaType;
import org.springframework.http.codec.BodyExtractor;
import org.springframework.http.codec.BodyExtractors;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.Assert;
import org.springframework.web.reactive.function.BodyExtractor;
import org.springframework.web.reactive.function.BodyExtractors;
import org.springframework.web.server.ServerWebExchange;
/**

4
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/DefaultServerResponseBuilder.java

@ -42,12 +42,12 @@ import org.springframework.http.HttpHeaders; @@ -42,12 +42,12 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.codec.BodyInserter;
import org.springframework.http.codec.BodyInserters;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
import org.springframework.web.reactive.function.BodyInserter;
import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.reactive.result.view.ViewResolver;
import org.springframework.web.server.ServerWebExchange;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java

@ -30,11 +30,11 @@ import reactor.core.publisher.Mono; @@ -30,11 +30,11 @@ import reactor.core.publisher.Mono;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.http.codec.BodyExtractor;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.Assert;
import org.springframework.util.PathMatcher;
import org.springframework.web.reactive.function.BodyExtractor;
/**
* Implementations of {@link RequestPredicate} that implement various useful request matching operations, such as

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/ResourceHandlerFunction.java

@ -30,7 +30,7 @@ import reactor.core.publisher.Mono; @@ -30,7 +30,7 @@ import reactor.core.publisher.Mono;
import org.springframework.core.io.Resource;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.codec.BodyInserters;
import org.springframework.web.reactive.function.BodyInserters;
/**
* @author Arjen Poutsma

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java

@ -31,8 +31,8 @@ import org.springframework.http.HttpHeaders; @@ -31,8 +31,8 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRange;
import org.springframework.http.MediaType;
import org.springframework.http.codec.BodyExtractor;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.web.reactive.function.BodyExtractor;
/**
* Represents a server-side HTTP request, as handled by a {@code HandlerFunction}.

4
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/ServerResponse.java

@ -31,10 +31,10 @@ import org.springframework.http.HttpHeaders; @@ -31,10 +31,10 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.codec.BodyInserter;
import org.springframework.http.codec.BodyInserters;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.Assert;
import org.springframework.web.reactive.function.BodyInserter;
import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.server.ServerWebExchange;
/**

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/support/ServerRequestWrapper.java

@ -31,9 +31,9 @@ import org.springframework.http.HttpHeaders; @@ -31,9 +31,9 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRange;
import org.springframework.http.MediaType;
import org.springframework.http.codec.BodyExtractor;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.Assert;
import org.springframework.web.reactive.function.BodyExtractor;
import org.springframework.web.reactive.function.server.HandlerFunction;
import org.springframework.web.reactive.function.server.ServerRequest;

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/FlushingIntegrationTests.java

@ -29,12 +29,12 @@ import reactor.test.StepVerifier; @@ -29,12 +29,12 @@ import reactor.test.StepVerifier;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
import org.springframework.http.codec.BodyExtractors;
import org.springframework.http.server.reactive.AbstractHttpHandlerIntegrationTests;
import org.springframework.http.server.reactive.HttpHandler;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.Assert;
import org.springframework.web.reactive.function.BodyExtractors;
import org.springframework.web.reactive.function.client.ClientRequest;
import org.springframework.web.reactive.function.client.WebClient;

5
spring-web/src/test/java/org/springframework/http/codec/BodyExtractorsTests.java → spring-web-reactive/src/test/java/org/springframework/web/reactive/function/BodyExtractorsTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.codec;
package org.springframework.web.reactive.function;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
@ -36,6 +36,9 @@ import org.springframework.core.io.buffer.DefaultDataBuffer; @@ -36,6 +36,9 @@ import org.springframework.core.io.buffer.DefaultDataBuffer;
import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.MediaType;
import org.springframework.http.ReactiveHttpInputMessage;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.UnsupportedMediaTypeException;
import org.springframework.http.codec.json.Jackson2JsonDecoder;
import org.springframework.http.codec.xml.Jaxb2XmlDecoder;
import org.springframework.mock.http.server.reactive.test.MockServerHttpRequest;

7
spring-web/src/test/java/org/springframework/http/codec/BodyInsertersTests.java → spring-web-reactive/src/test/java/org/springframework/web/reactive/function/BodyInsertersTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.codec;
package org.springframework.web.reactive.function;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
@ -39,6 +39,11 @@ import org.springframework.core.io.buffer.DataBuffer; @@ -39,6 +39,11 @@ import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DefaultDataBuffer;
import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.ReactiveHttpOutputMessage;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.codec.ResourceHttpMessageWriter;
import org.springframework.http.codec.ServerSentEvent;
import org.springframework.http.codec.ServerSentEventHttpMessageWriter;
import org.springframework.http.codec.json.Jackson2JsonEncoder;
import org.springframework.http.codec.xml.Jaxb2XmlEncoder;
import org.springframework.http.server.reactive.ServerHttpResponse;

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/client/DefaultClientRequestBuilderTests.java

@ -34,10 +34,10 @@ import org.springframework.core.io.buffer.DefaultDataBufferFactory; @@ -34,10 +34,10 @@ import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ClientHttpRequest;
import org.springframework.http.codec.BodyInserter;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.web.client.reactive.test.MockClientHttpRequest;
import org.springframework.web.reactive.function.BodyInserter;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.Assert.assertEquals;

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/client/DefaultClientResponseTests.java

@ -46,7 +46,7 @@ import org.springframework.http.codec.HttpMessageReader; @@ -46,7 +46,7 @@ import org.springframework.http.codec.HttpMessageReader;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.springframework.http.codec.BodyExtractors.toMono;
import static org.springframework.web.reactive.function.BodyExtractors.toMono;
/**
* @author Arjen Poutsma

8
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java

@ -35,14 +35,14 @@ import org.springframework.http.HttpHeaders; @@ -35,14 +35,14 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
import org.springframework.http.codec.BodyExtractors;
import org.springframework.http.codec.BodyInserters;
import org.springframework.http.codec.Pojo;
import org.springframework.web.reactive.function.BodyExtractors;
import org.springframework.web.reactive.function.BodyInserters;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.springframework.http.codec.BodyExtractors.toFlux;
import static org.springframework.http.codec.BodyExtractors.toMono;
import static org.springframework.web.reactive.function.BodyExtractors.toFlux;
import static org.springframework.web.reactive.function.BodyExtractors.toMono;
/**
* {@link WebClient} integration tests with the {@code Flux} and {@code Mono} API.

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/DefaultServerRequestTests.java

@ -52,7 +52,7 @@ import org.springframework.web.server.ServerWebExchange; @@ -52,7 +52,7 @@ import org.springframework.web.server.ServerWebExchange;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.springframework.http.codec.BodyExtractors.toMono;
import static org.springframework.web.reactive.function.BodyExtractors.toMono;
/**
* @author Arjen Poutsma

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/DispatcherHandlerIntegrationTests.java

@ -48,8 +48,8 @@ import org.springframework.web.reactive.result.view.ViewResolver; @@ -48,8 +48,8 @@ import org.springframework.web.reactive.result.view.ViewResolver;
import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
import static org.junit.Assert.assertEquals;
import static org.springframework.http.codec.BodyInserters.fromObject;
import static org.springframework.http.codec.BodyInserters.fromPublisher;
import static org.springframework.web.reactive.function.BodyInserters.fromObject;
import static org.springframework.web.reactive.function.BodyInserters.fromPublisher;
import static org.springframework.web.reactive.function.server.RouterFunctions.route;
/**

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/MockServerRequest.java

@ -36,11 +36,11 @@ import org.springframework.http.HttpHeaders; @@ -36,11 +36,11 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRange;
import org.springframework.http.MediaType;
import org.springframework.http.codec.BodyExtractor;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.Assert;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.reactive.function.BodyExtractor;
/**
* @author Arjen Poutsma

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/PublisherHandlerFunctionIntegrationTests.java

@ -32,8 +32,8 @@ import org.springframework.http.ResponseEntity; @@ -32,8 +32,8 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
import static org.junit.Assert.assertEquals;
import static org.springframework.http.codec.BodyExtractors.toMono;
import static org.springframework.http.codec.BodyInserters.fromPublisher;
import static org.springframework.web.reactive.function.BodyExtractors.toMono;
import static org.springframework.web.reactive.function.BodyInserters.fromPublisher;
import static org.springframework.web.reactive.function.server.RequestPredicates.GET;
import static org.springframework.web.reactive.function.server.RequestPredicates.POST;
import static org.springframework.web.reactive.function.server.RouterFunctions.route;

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/RouterFunctionTests.java

@ -21,7 +21,7 @@ import reactor.core.publisher.Mono; @@ -21,7 +21,7 @@ import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import static org.junit.Assert.assertNotNull;
import static org.springframework.http.codec.BodyInserters.fromObject;
import static org.springframework.web.reactive.function.BodyInserters.fromObject;
/**
* @author Arjen Poutsma

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/function/server/SseHandlerFunctionIntegrationTests.java

@ -26,12 +26,12 @@ import reactor.test.StepVerifier; @@ -26,12 +26,12 @@ import reactor.test.StepVerifier;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
import org.springframework.http.codec.BodyExtractors;
import org.springframework.http.codec.ServerSentEvent;
import org.springframework.web.reactive.function.BodyExtractors;
import org.springframework.web.reactive.function.client.ClientRequest;
import org.springframework.web.reactive.function.client.WebClient;
import static org.springframework.http.codec.BodyInserters.fromServerSentEvents;
import static org.springframework.web.reactive.function.BodyInserters.fromServerSentEvents;
import static org.springframework.web.reactive.function.server.RouterFunctions.route;
/**

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.java

@ -29,7 +29,6 @@ import org.springframework.context.annotation.Bean; @@ -29,7 +29,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
import org.springframework.http.codec.BodyExtractors;
import org.springframework.http.codec.ServerSentEvent;
import org.springframework.http.server.reactive.AbstractHttpHandlerIntegrationTests;
import org.springframework.http.server.reactive.HttpHandler;
@ -37,6 +36,7 @@ import org.springframework.web.bind.annotation.RequestMapping; @@ -37,6 +36,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.DispatcherHandler;
import org.springframework.web.reactive.config.EnableWebReactive;
import org.springframework.web.reactive.function.BodyExtractors;
import org.springframework.web.reactive.function.client.ClientRequest;
import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.server.adapter.WebHttpHandlerBuilder;

0
spring-web/src/test/resources/org/springframework/http/codec/response.txt → spring-web-reactive/src/test/resources/org/springframework/web/reactive/function/response.txt

Loading…
Cancel
Save