Browse Source

Move http.converter.reactive to http.codec

pull/1112/merge
Rossen Stoyanchev 9 years ago
parent
commit
10c90a677c
  1. 12
      spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java
  2. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageReaderArgumentResolver.java
  3. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java
  4. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/HttpEntityArgumentResolver.java
  5. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolver.java
  6. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java
  7. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandler.java
  8. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandler.java
  9. 4
      spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/HttpMessageWriterView.java
  10. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/DispatcherHandlerErrorTests.java
  11. 8
      spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationTests.java
  12. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/HttpEntityArgumentResolverTests.java
  13. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageReaderArgumentResolverTests.java
  14. 6
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageWriterResultHandlerTests.java
  15. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java
  16. 6
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java
  17. 6
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java
  18. 2
      spring-web/src/main/java/org/springframework/http/codec/DecoderHttpMessageReader.java
  19. 2
      spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java
  20. 2
      spring-web/src/main/java/org/springframework/http/codec/HttpMessageReader.java
  21. 2
      spring-web/src/main/java/org/springframework/http/codec/HttpMessageWriter.java
  22. 2
      spring-web/src/main/java/org/springframework/http/codec/ResourceHttpMessageWriter.java
  23. 1
      spring-web/src/main/java/org/springframework/http/codec/SseEvent.java
  24. 3
      spring-web/src/main/java/org/springframework/http/codec/SseEventHttpMessageWriter.java
  25. 9
      spring-web/src/main/java/org/springframework/http/codec/package-info.java
  26. 8
      spring-web/src/main/java/org/springframework/http/converter/reactive/package-info.java
  27. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/BodyExtractor.java
  28. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/DefaultResponseErrorHandler.java
  29. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/ResponseErrorHandler.java
  30. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/ResponseExtractors.java
  31. 10
      spring-web/src/main/java/org/springframework/web/client/reactive/WebClient.java
  32. 4
      spring-web/src/main/java/org/springframework/web/client/reactive/WebClientConfig.java
  33. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/WebClientErrorException.java
  34. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/WebClientResponseException.java
  35. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/WebServerErrorException.java
  36. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/support/RxJava1ResponseExtractors.java
  37. 3
      spring-web/src/test/java/org/springframework/http/codec/SseEventHttpMessageWriterTests.java
  38. 4
      spring-web/src/test/java/org/springframework/web/client/reactive/DefaultResponseErrorHandlerTests.java
  39. 4
      spring-web/src/test/java/org/springframework/web/client/reactive/ResponseExtractorsTests.java

12
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java

@ -43,12 +43,12 @@ import org.springframework.http.codec.json.JacksonJsonDecoder; @@ -43,12 +43,12 @@ import org.springframework.http.codec.json.JacksonJsonDecoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Decoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.http.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.EncoderHttpMessageWriter;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.converter.reactive.ResourceHttpMessageWriter;
import org.springframework.http.converter.reactive.SseEventHttpMessageWriter;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.codec.ResourceHttpMessageWriter;
import org.springframework.http.codec.SseEventHttpMessageWriter;
import org.springframework.util.ClassUtils;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageReaderArgumentResolver.java

@ -30,7 +30,7 @@ import org.springframework.core.ReactiveAdapterRegistry; @@ -30,7 +30,7 @@ import org.springframework.core.ReactiveAdapterRegistry;
import org.springframework.core.ResolvableType;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.http.MediaType;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java

@ -26,7 +26,7 @@ import org.springframework.core.ReactiveAdapter; @@ -26,7 +26,7 @@ import org.springframework.core.ReactiveAdapter;
import org.springframework.core.ReactiveAdapterRegistry;
import org.springframework.core.ResolvableType;
import org.springframework.http.MediaType;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.Assert;
import org.springframework.web.reactive.accept.RequestedContentTypeResolver;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/HttpEntityArgumentResolver.java

@ -25,7 +25,7 @@ import org.springframework.core.ResolvableType; @@ -25,7 +25,7 @@ import org.springframework.core.ResolvableType;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.RequestEntity;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.ui.ModelMap;
import org.springframework.validation.Validator;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolver.java

@ -22,7 +22,7 @@ import reactor.core.publisher.Mono; @@ -22,7 +22,7 @@ import reactor.core.publisher.Mono;
import org.springframework.core.MethodParameter;
import org.springframework.core.ReactiveAdapterRegistry;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.ui.ModelMap;
import org.springframework.validation.Validator;
import org.springframework.web.bind.annotation.RequestBody;

4
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java

@ -36,8 +36,8 @@ import org.springframework.core.codec.ByteBufferDecoder; @@ -36,8 +36,8 @@ import org.springframework.core.codec.ByteBufferDecoder;
import org.springframework.core.codec.StringDecoder;
import org.springframework.core.convert.ConversionService;
import org.springframework.format.support.DefaultFormattingConversionService;
import org.springframework.http.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.ui.ExtendedModelMap;
import org.springframework.ui.ModelMap;
import org.springframework.validation.Validator;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandler.java

@ -25,7 +25,7 @@ import org.springframework.core.ReactiveAdapterRegistry; @@ -25,7 +25,7 @@ import org.springframework.core.ReactiveAdapterRegistry;
import org.springframework.core.ResolvableType;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.http.HttpEntity;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.reactive.HandlerResult;
import org.springframework.web.reactive.HandlerResultHandler;

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandler.java

@ -28,7 +28,7 @@ import org.springframework.http.HttpEntity; @@ -28,7 +28,7 @@ import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.util.Assert;
import org.springframework.web.reactive.HandlerResult;
import org.springframework.web.reactive.HandlerResultHandler;

4
spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/HttpMessageWriterView.java

@ -27,8 +27,8 @@ import reactor.core.publisher.Mono; @@ -27,8 +27,8 @@ import reactor.core.publisher.Mono;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.Encoder;
import org.springframework.http.MediaType;
import org.springframework.http.converter.reactive.EncoderHttpMessageWriter;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.ui.ModelMap;
import org.springframework.util.Assert;

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

@ -35,7 +35,7 @@ import org.springframework.core.io.buffer.DefaultDataBufferFactory; @@ -35,7 +35,7 @@ import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.converter.reactive.EncoderHttpMessageWriter;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.stereotype.Controller;

8
spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationTests.java

@ -44,10 +44,10 @@ import org.springframework.http.MediaType; @@ -44,10 +44,10 @@ import org.springframework.http.MediaType;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Decoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.http.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.EncoderHttpMessageWriter;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.util.MimeType;

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/HttpEntityArgumentResolverTests.java

@ -41,8 +41,8 @@ import org.springframework.http.HttpEntity; @@ -41,8 +41,8 @@ import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.http.RequestEntity;
import org.springframework.http.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.ui.ExtendedModelMap;

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageReaderArgumentResolverTests.java

@ -47,8 +47,8 @@ import org.springframework.core.io.buffer.DefaultDataBufferFactory; @@ -47,8 +47,8 @@ import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.http.codec.json.JacksonJsonDecoder;
import org.springframework.http.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.validation.Errors;

6
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageWriterResultHandlerTests.java

@ -46,9 +46,9 @@ import org.springframework.core.io.buffer.support.DataBufferTestUtils; @@ -46,9 +46,9 @@ import org.springframework.core.io.buffer.support.DataBufferTestUtils;
import org.springframework.http.HttpMethod;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.http.converter.reactive.EncoderHttpMessageWriter;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.converter.reactive.ResourceHttpMessageWriter;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.codec.ResourceHttpMessageWriter;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.http.server.reactive.ServerHttpRequest;

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java

@ -40,8 +40,8 @@ import org.springframework.core.codec.StringDecoder; @@ -40,8 +40,8 @@ import org.springframework.core.codec.StringDecoder;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.HttpMethod;
import org.springframework.http.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.ui.ExtendedModelMap;

6
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java

@ -31,9 +31,9 @@ import org.springframework.http.HttpMethod; @@ -31,9 +31,9 @@ import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.http.converter.reactive.EncoderHttpMessageWriter;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.converter.reactive.ResourceHttpMessageWriter;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.codec.ResourceHttpMessageWriter;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.http.server.reactive.ServerHttpRequest;

6
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java

@ -40,9 +40,9 @@ import org.springframework.http.HttpStatus; @@ -40,9 +40,9 @@ import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.http.converter.reactive.EncoderHttpMessageWriter;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.converter.reactive.ResourceHttpMessageWriter;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.codec.ResourceHttpMessageWriter;
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.http.server.reactive.ServerHttpRequest;

2
spring-web/src/main/java/org/springframework/http/converter/reactive/DecoderHttpMessageReader.java → spring-web/src/main/java/org/springframework/http/codec/DecoderHttpMessageReader.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.converter.reactive;
package org.springframework.http.codec;
import java.util.Collections;
import java.util.List;

2
spring-web/src/main/java/org/springframework/http/converter/reactive/EncoderHttpMessageWriter.java → spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.converter.reactive;
package org.springframework.http.codec;
import java.util.Collections;
import java.util.List;

2
spring-web/src/main/java/org/springframework/http/converter/reactive/HttpMessageReader.java → spring-web/src/main/java/org/springframework/http/codec/HttpMessageReader.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.converter.reactive;
package org.springframework.http.codec;
import java.util.List;

2
spring-web/src/main/java/org/springframework/http/converter/reactive/HttpMessageWriter.java → spring-web/src/main/java/org/springframework/http/codec/HttpMessageWriter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.converter.reactive;
package org.springframework.http.codec;
import java.util.List;

2
spring-web/src/main/java/org/springframework/http/converter/reactive/ResourceHttpMessageWriter.java → spring-web/src/main/java/org/springframework/http/codec/ResourceHttpMessageWriter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.converter.reactive;
package org.springframework.http.codec;
import java.io.File;
import java.io.IOException;

1
spring-web/src/main/java/org/springframework/http/codec/SseEvent.java

@ -17,7 +17,6 @@ @@ -17,7 +17,6 @@
package org.springframework.http.codec;
import org.springframework.http.MediaType;
import org.springframework.http.converter.reactive.SseEventHttpMessageWriter;
/**
* Representation for a Server-Sent Event for use with Spring's reactive Web

3
spring-web/src/main/java/org/springframework/http/converter/reactive/SseEventHttpMessageWriter.java → spring-web/src/main/java/org/springframework/http/codec/SseEventHttpMessageWriter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.converter.reactive;
package org.springframework.http.codec;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
@ -32,7 +32,6 @@ import org.springframework.core.io.buffer.DataBuffer; @@ -32,7 +32,6 @@ import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.http.MediaType;
import org.springframework.http.ReactiveHttpOutputMessage;
import org.springframework.http.codec.SseEvent;
import org.springframework.util.Assert;
/**

9
spring-web/src/main/java/org/springframework/http/codec/package-info.java

@ -1,5 +1,10 @@ @@ -1,5 +1,10 @@
/**
* {@link org.springframework.core.codec.Encoder} and
* {@link org.springframework.core.codec.Decoder} implementations for web use.
* Provides implementations of {@link org.springframework.core.codec.Encoder}
* and {@link org.springframework.core.codec.Decoder} for web use.
*
* <p>Also declares a high-level
* {@link org.springframework.http.codec.HttpMessageReader} and
* {@link org.springframework.http.codec.HttpMessageWriter} for reading and
* writing the body of HTTP requests and responses.
*/
package org.springframework.http.codec;

8
spring-web/src/main/java/org/springframework/http/converter/reactive/package-info.java

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
/**
* {@link org.springframework.http.converter.reactive.HttpMessageReader},
* {@link org.springframework.http.converter.reactive.HttpMessageWriter}
* and implementations for use with reactive
* {@link org.springframework.core.codec.Encoder} and
* {@link org.springframework.core.codec.Decoder} implementations.
*/
package org.springframework.http.converter.reactive;

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

@ -19,7 +19,7 @@ package org.springframework.web.client.reactive; @@ -19,7 +19,7 @@ package org.springframework.web.client.reactive;
import java.util.List;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
/**
* Contract to extract the content of a raw {@link ClientHttpResponse} decoding

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

@ -20,7 +20,7 @@ import java.util.List; @@ -20,7 +20,7 @@ import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
/**
* Default implementation of the {@link ResponseErrorHandler} interface

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

@ -19,7 +19,7 @@ package org.springframework.web.client.reactive; @@ -19,7 +19,7 @@ package org.springframework.web.client.reactive;
import java.util.List;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
/**
* Strategy interface used by the {@link WebClient} to handle errors in

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

@ -26,7 +26,7 @@ import org.springframework.http.HttpHeaders; @@ -26,7 +26,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
/**
* Static factory methods for {@link ResponseExtractor} and {@link BodyExtractor},

10
spring-web/src/main/java/org/springframework/web/client/reactive/WebClient.java

@ -42,11 +42,11 @@ import org.springframework.http.codec.json.JacksonJsonDecoder; @@ -42,11 +42,11 @@ import org.springframework.http.codec.json.JacksonJsonDecoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Decoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.http.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.EncoderHttpMessageWriter;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.converter.reactive.ResourceHttpMessageWriter;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.EncoderHttpMessageWriter;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.http.codec.ResourceHttpMessageWriter;
import org.springframework.util.ClassUtils;
/**

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

@ -18,8 +18,8 @@ package org.springframework.web.client.reactive; @@ -18,8 +18,8 @@ package org.springframework.web.client.reactive;
import java.util.List;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageWriter;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.HttpMessageWriter;
/**
* Interface that makes the {@link WebClient} configuration information

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

@ -19,7 +19,7 @@ package org.springframework.web.client.reactive; @@ -19,7 +19,7 @@ package org.springframework.web.client.reactive;
import java.util.List;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
/**
* Exception thrown when an HTTP 4xx is received.

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

@ -21,7 +21,7 @@ import java.util.List; @@ -21,7 +21,7 @@ import java.util.List;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
/**
* Base class for exceptions associated with specific HTTP client response

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

@ -19,7 +19,7 @@ package org.springframework.web.client.reactive; @@ -19,7 +19,7 @@ package org.springframework.web.client.reactive;
import java.util.List;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
/**
* Exception thrown when an HTTP 5xx is received.

2
spring-web/src/main/java/org/springframework/web/client/reactive/support/RxJava1ResponseExtractors.java

@ -29,7 +29,7 @@ import org.springframework.http.HttpHeaders; @@ -29,7 +29,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.web.client.reactive.BodyExtractor;
import org.springframework.web.client.reactive.ResponseExtractor;
import org.springframework.web.client.reactive.WebClientException;

3
spring-web/src/test/java/org/springframework/http/converter/reactive/SseEventHttpMessageWriterTests.java → spring-web/src/test/java/org/springframework/http/codec/SseEventHttpMessageWriterTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.converter.reactive;
package org.springframework.http.codec;
import java.util.Collections;
@ -30,6 +30,7 @@ import org.springframework.core.io.buffer.DataBuffer; @@ -30,6 +30,7 @@ import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.MediaType;
import org.springframework.http.codec.Pojo;
import org.springframework.http.codec.SseEvent;
import org.springframework.http.codec.SseEventHttpMessageWriter;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.server.reactive.MockServerHttpResponse;

4
spring-web/src/test/java/org/springframework/web/client/reactive/DefaultResponseErrorHandlerTests.java

@ -15,8 +15,8 @@ import org.springframework.http.HttpHeaders; @@ -15,8 +15,8 @@ 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.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

4
spring-web/src/test/java/org/springframework/web/client/reactive/ResponseExtractorsTests.java

@ -20,8 +20,8 @@ import org.springframework.http.MediaType; @@ -20,8 +20,8 @@ import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.reactive.ClientHttpResponse;
import org.springframework.http.codec.json.JacksonJsonDecoder;
import org.springframework.http.converter.reactive.DecoderHttpMessageReader;
import org.springframework.http.converter.reactive.HttpMessageReader;
import org.springframework.http.codec.DecoderHttpMessageReader;
import org.springframework.http.codec.HttpMessageReader;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.instanceOf;

Loading…
Cancel
Save