Browse Source

Move RequestPath to parent server package

pull/1488/head
Rossen Stoyanchev 9 years ago
parent
commit
6855a85c41
  1. 4
      spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java
  2. 2
      spring-web/src/main/java/org/springframework/http/server/DefaultPathContainer.java
  3. 9
      spring-web/src/main/java/org/springframework/http/server/DefaultRequestPath.java
  4. 5
      spring-web/src/main/java/org/springframework/http/server/PathContainer.java
  5. 16
      spring-web/src/main/java/org/springframework/http/server/RequestPath.java
  6. 1
      spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java
  7. 3
      spring-web/src/main/java/org/springframework/http/server/reactive/DefaultServerHttpRequestBuilder.java
  8. 1
      spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequest.java
  9. 1
      spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequestDecorator.java
  10. 2
      spring-web/src/main/java/org/springframework/web/cors/reactive/UrlBasedCorsConfigurationSource.java
  11. 4
      spring-web/src/main/java/org/springframework/web/util/pattern/CaptureTheRestPathElement.java
  12. 2
      spring-web/src/main/java/org/springframework/web/util/pattern/CaptureVariablePathElement.java
  13. 6
      spring-web/src/main/java/org/springframework/web/util/pattern/LiteralPathElement.java
  14. 2
      spring-web/src/main/java/org/springframework/web/util/pattern/ParsingPathMatcher.java
  15. 6
      spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
  16. 2
      spring-web/src/main/java/org/springframework/web/util/pattern/RegexPathElement.java
  17. 4
      spring-web/src/main/java/org/springframework/web/util/pattern/SingleCharWildcardedPathElement.java
  18. 4
      spring-web/src/main/java/org/springframework/web/util/pattern/WildcardPathElement.java
  19. 4
      spring-web/src/test/java/org/springframework/http/server/DefaultPathContainerTests.java
  20. 2
      spring-web/src/test/java/org/springframework/http/server/DefaultRequestPathTests.java
  21. 4
      spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternMatcherTests.java
  22. 2
      spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternParserTests.java
  23. 1
      spring-webflux/src/main/java/org/springframework/web/reactive/config/PathMatchConfigurer.java
  24. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/DefaultServerRequest.java
  25. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/PathResourceLookupFunction.java
  26. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
  27. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java
  28. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerRequestWrapper.java
  29. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/handler/AbstractUrlHandlerMapping.java
  30. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceUrlProvider.java
  31. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java
  32. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/result/condition/PatternsRequestCondition.java
  33. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMapping.java
  34. 2
      spring-webflux/src/test/java/org/springframework/web/reactive/config/ResourceHandlerRegistryTests.java
  35. 4
      spring-webflux/src/test/java/org/springframework/web/reactive/function/server/MockServerRequest.java
  36. 2
      spring-webflux/src/test/java/org/springframework/web/reactive/handler/SimpleUrlHandlerMappingTests.java
  37. 2
      spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceWebHandlerTests.java

4
spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java

@ -39,8 +39,8 @@ import org.springframework.http.HttpHeaders; @@ -39,8 +39,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.server.reactive.PathContainer;
import org.springframework.http.server.reactive.RequestPath;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.RequestPath;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;

2
spring-web/src/main/java/org/springframework/http/server/reactive/DefaultPathContainer.java → spring-web/src/main/java/org/springframework/http/server/DefaultPathContainer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive;
package org.springframework.http.server;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

9
spring-web/src/main/java/org/springframework/http/server/reactive/DefaultRequestPath.java → spring-web/src/main/java/org/springframework/http/server/DefaultRequestPath.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive;
package org.springframework.http.server;
import java.net.URI;
import java.util.List;
@ -44,7 +44,7 @@ class DefaultRequestPath implements RequestPath { @@ -44,7 +44,7 @@ class DefaultRequestPath implements RequestPath {
this.pathWithinApplication = extractPathWithinApplication(this.fullPath, this.contextPath);
}
DefaultRequestPath(RequestPath requestPath, @Nullable String contextPath) {
private DefaultRequestPath(RequestPath requestPath, String contextPath) {
this.fullPath = requestPath;
this.contextPath = initContextPath(this.fullPath, contextPath);
this.pathWithinApplication = extractPathWithinApplication(this.fullPath, this.contextPath);
@ -104,6 +104,11 @@ class DefaultRequestPath implements RequestPath { @@ -104,6 +104,11 @@ class DefaultRequestPath implements RequestPath {
return this.pathWithinApplication;
}
@Override
public RequestPath modifyContextPath(String contextPath) {
return new DefaultRequestPath(this, contextPath);
}
@Override
public boolean equals(@Nullable Object other) {

5
spring-web/src/main/java/org/springframework/http/server/reactive/PathContainer.java → spring-web/src/main/java/org/springframework/http/server/PathContainer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive;
package org.springframework.http.server;
import java.util.List;
@ -25,8 +25,7 @@ import org.springframework.util.MultiValueMap; @@ -25,8 +25,7 @@ import org.springframework.util.MultiValueMap;
* of {@link Separator Separator} and {@link PathSegment PathSegment} elements.
*
* <p>An instance of this class can be created via {@link #parsePath(String)} or
* {@link #parseUrlPath(String)}. For an HTTP request the path can be
* accessed via {@link ServerHttpRequest#getPath()}.
* {@link #parseUrlPath(String)}.
*
* <p>For a URL path each {@link UrlPathSegment UrlPathSegment} exposes its
* structure decoded safely without the risk of encoded reserved characters

16
spring-web/src/main/java/org/springframework/http/server/reactive/RequestPath.java → spring-web/src/main/java/org/springframework/http/server/RequestPath.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.http.server.reactive;
package org.springframework.http.server;
import java.net.URI;
@ -32,8 +32,10 @@ public interface RequestPath extends PathContainer { @@ -32,8 +32,10 @@ public interface RequestPath extends PathContainer {
* The context path is always at the beginning of the path and starts but
* does not end with "/". It is shared for URLs of the same application.
* <p>The context path may come from the underlying runtime API such as
* when deploying as a WAR to a Servlet container or it may also be assigned
* through the use of {@link ContextPathCompositeHandler} or both.
* when deploying as a WAR to a Servlet container or it may be assigned in
* a WebFlux application through the use of
* {@link org.springframework.http.server.reactive.ContextPathCompositeHandler
* ContextPathCompositeHandler}.
*/
PathContainer contextPath();
@ -42,6 +44,14 @@ public interface RequestPath extends PathContainer { @@ -42,6 +44,14 @@ public interface RequestPath extends PathContainer {
*/
PathContainer pathWithinApplication();
/**
* Return a new {@code RequestPath} instance with a modified context path.
* The new context path must match the beginning of this request path.
* @param contextPath the new context path
* @return a new {@code RequestPath} instance
*/
RequestPath modifyContextPath(String contextPath);
/**
* Create a new {@code RequestPath} with the given parameters.

1
spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java

@ -23,6 +23,7 @@ import java.util.regex.Pattern; @@ -23,6 +23,7 @@ import java.util.regex.Pattern;
import org.springframework.http.HttpCookie;
import org.springframework.http.HttpHeaders;
import org.springframework.http.server.RequestPath;
import org.springframework.lang.Nullable;
import org.springframework.util.CollectionUtils;
import org.springframework.util.LinkedMultiValueMap;

3
spring-web/src/main/java/org/springframework/http/server/reactive/DefaultServerHttpRequestBuilder.java

@ -21,6 +21,7 @@ import java.net.URISyntaxException; @@ -21,6 +21,7 @@ import java.net.URISyntaxException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.server.RequestPath;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
@ -110,7 +111,7 @@ class DefaultServerHttpRequestBuilder implements ServerHttpRequest.Builder { @@ -110,7 +111,7 @@ class DefaultServerHttpRequestBuilder implements ServerHttpRequest.Builder {
return null;
}
else if (uriToUse == null) {
return new DefaultRequestPath(this.delegate.getPath(), this.contextPath);
return this.delegate.getPath().modifyContextPath(this.contextPath);
}
else {
return RequestPath.parse(uriToUse, this.contextPath);

1
spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequest.java

@ -22,6 +22,7 @@ import org.springframework.http.HttpCookie; @@ -22,6 +22,7 @@ import org.springframework.http.HttpCookie;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRequest;
import org.springframework.http.ReactiveHttpInputMessage;
import org.springframework.http.server.RequestPath;
import org.springframework.lang.Nullable;
import org.springframework.util.MultiValueMap;

1
spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequestDecorator.java

@ -25,6 +25,7 @@ import org.springframework.core.io.buffer.DataBuffer; @@ -25,6 +25,7 @@ import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.HttpCookie;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.server.RequestPath;
import org.springframework.util.Assert;
import org.springframework.util.MultiValueMap;

2
spring-web/src/main/java/org/springframework/web/cors/reactive/UrlBasedCorsConfigurationSource.java

@ -19,7 +19,7 @@ package org.springframework.web.cors.reactive; @@ -19,7 +19,7 @@ package org.springframework.web.cors.reactive;
import java.util.LinkedHashMap;
import java.util.Map;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.lang.Nullable;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.server.ServerWebExchange;

4
spring-web/src/main/java/org/springframework/web/util/pattern/CaptureTheRestPathElement.java

@ -18,8 +18,8 @@ package org.springframework.web.util.pattern; @@ -18,8 +18,8 @@ package org.springframework.web.util.pattern;
import java.util.List;
import org.springframework.http.server.reactive.PathContainer.Element;
import org.springframework.http.server.reactive.PathContainer.UrlPathSegment;
import org.springframework.http.server.PathContainer.Element;
import org.springframework.http.server.PathContainer.UrlPathSegment;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.util.pattern.PathPattern.MatchingContext;

2
spring-web/src/main/java/org/springframework/web/util/pattern/CaptureVariablePathElement.java

@ -19,7 +19,7 @@ package org.springframework.web.util.pattern; @@ -19,7 +19,7 @@ package org.springframework.web.util.pattern;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.springframework.http.server.reactive.PathContainer.UrlPathSegment;
import org.springframework.http.server.PathContainer.UrlPathSegment;
import org.springframework.lang.Nullable;
/**

6
spring-web/src/main/java/org/springframework/web/util/pattern/LiteralPathElement.java

@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
package org.springframework.web.util.pattern;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.reactive.PathContainer.Element;
import org.springframework.http.server.reactive.PathContainer.PathSegment;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.PathContainer.Element;
import org.springframework.http.server.PathContainer.PathSegment;
import org.springframework.web.util.pattern.PathPattern.MatchingContext;
/**

2
spring-web/src/main/java/org/springframework/web/util/pattern/ParsingPathMatcher.java

@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.stream.Collectors;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.lang.Nullable;
import org.springframework.util.PathMatcher;
import org.springframework.web.util.pattern.PathPattern.PathMatchResult;

6
spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java

@ -21,9 +21,9 @@ import java.util.HashMap; @@ -21,9 +21,9 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.reactive.PathContainer.Element;
import org.springframework.http.server.reactive.PathContainer.Separator;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.PathContainer.Element;
import org.springframework.http.server.PathContainer.Separator;
import org.springframework.lang.Nullable;
import org.springframework.util.CollectionUtils;
import org.springframework.util.MultiValueMap;

2
spring-web/src/main/java/org/springframework/web/util/pattern/RegexPathElement.java

@ -21,7 +21,7 @@ import java.util.List; @@ -21,7 +21,7 @@ import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.springframework.http.server.reactive.PathContainer.UrlPathSegment;
import org.springframework.http.server.PathContainer.UrlPathSegment;
import org.springframework.web.util.pattern.PathPattern.MatchingContext;
/**

4
spring-web/src/main/java/org/springframework/web/util/pattern/SingleCharWildcardedPathElement.java

@ -16,8 +16,8 @@ @@ -16,8 +16,8 @@
package org.springframework.web.util.pattern;
import org.springframework.http.server.reactive.PathContainer.Element;
import org.springframework.http.server.reactive.PathContainer.PathSegment;
import org.springframework.http.server.PathContainer.Element;
import org.springframework.http.server.PathContainer.PathSegment;
import org.springframework.web.util.pattern.PathPattern.MatchingContext;
/**

4
spring-web/src/main/java/org/springframework/web/util/pattern/WildcardPathElement.java

@ -16,8 +16,8 @@ @@ -16,8 +16,8 @@
package org.springframework.web.util.pattern;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.reactive.PathContainer.Element;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.PathContainer.Element;
import org.springframework.web.util.pattern.PathPattern.MatchingContext;
/**

4
spring-web/src/test/java/org/springframework/http/server/reactive/DefaultPathContainerTests.java → spring-web/src/test/java/org/springframework/http/server/DefaultPathContainerTests.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.http.server.reactive;
package org.springframework.http.server;
import java.util.Arrays;
import java.util.Collections;
@ -22,7 +22,7 @@ import java.util.stream.Collectors; @@ -22,7 +22,7 @@ import java.util.stream.Collectors;
import org.junit.Test;
import org.springframework.http.server.reactive.PathContainer.UrlPathSegment;
import org.springframework.http.server.PathContainer.UrlPathSegment;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;

2
spring-web/src/test/java/org/springframework/http/server/reactive/DefaultRequestPathTests.java → spring-web/src/test/java/org/springframework/http/server/DefaultRequestPathTests.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.http.server.reactive;
package org.springframework.http.server;
import java.net.URI;

4
spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternMatcherTests.java

@ -29,8 +29,8 @@ import org.junit.Rule; @@ -29,8 +29,8 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.reactive.PathContainer.Element;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.PathContainer.Element;
import org.springframework.util.AntPathMatcher;
import org.springframework.web.util.pattern.PathPattern.PathMatchResult;
import org.springframework.web.util.pattern.PathPattern.PathRemainingMatchInfo;

2
spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternParserTests.java

@ -22,7 +22,7 @@ import java.util.List; @@ -22,7 +22,7 @@ import java.util.List;
import org.junit.Test;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.web.util.pattern.PathPattern.PathMatchResult;
import org.springframework.web.util.pattern.PatternParseException.PatternMessage;

1
spring-webflux/src/main/java/org/springframework/web/reactive/config/PathMatchConfigurer.java

@ -30,6 +30,7 @@ public class PathMatchConfigurer { @@ -30,6 +30,7 @@ public class PathMatchConfigurer {
@Nullable
private Boolean trailingSlashMatch;
@Nullable
private Boolean caseSensitiveMatch;

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

@ -39,7 +39,7 @@ import org.springframework.http.HttpMethod; @@ -39,7 +39,7 @@ import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRange;
import org.springframework.http.MediaType;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.Assert;

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

@ -26,7 +26,7 @@ import reactor.core.publisher.Mono; @@ -26,7 +26,7 @@ import reactor.core.publisher.Mono;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.util.ResourceUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.util.pattern.PathPattern;

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

@ -39,7 +39,7 @@ import org.springframework.core.ParameterizedTypeReference; @@ -39,7 +39,7 @@ import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpCookie;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;

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

@ -37,7 +37,7 @@ import org.springframework.http.HttpRange; @@ -37,7 +37,7 @@ import org.springframework.http.HttpRange;
import org.springframework.http.MediaType;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.json.Jackson2CodecSupport;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.lang.Nullable;
import org.springframework.util.CollectionUtils;

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

@ -35,7 +35,7 @@ import org.springframework.http.HttpHeaders; @@ -35,7 +35,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRange;
import org.springframework.http.MediaType;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.Assert;
import org.springframework.util.MultiValueMap;

2
spring-webflux/src/main/java/org/springframework/web/reactive/handler/AbstractUrlHandlerMapping.java

@ -24,7 +24,7 @@ import java.util.Map; @@ -24,7 +24,7 @@ import java.util.Map;
import reactor.core.publisher.Mono;
import org.springframework.beans.BeansException;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

2
spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceUrlProvider.java

@ -31,7 +31,7 @@ import org.springframework.context.ApplicationContext; @@ -31,7 +31,7 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.StringUtils;
import org.springframework.web.reactive.handler.SimpleUrlHandlerMapping;

2
spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java

@ -41,7 +41,7 @@ import org.springframework.http.HttpStatus; @@ -41,7 +41,7 @@ import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.MediaTypeFactory;
import org.springframework.http.codec.ResourceHttpMessageWriter;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils;

2
spring-webflux/src/main/java/org/springframework/web/reactive/result/condition/PatternsRequestCondition.java

@ -27,7 +27,7 @@ import java.util.SortedSet; @@ -27,7 +27,7 @@ import java.util.SortedSet;
import java.util.TreeSet;
import java.util.stream.Collectors;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.lang.Nullable;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.util.pattern.PathPattern;

2
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMapping.java

@ -31,7 +31,7 @@ import org.springframework.http.HttpHeaders; @@ -31,7 +31,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.InvalidMediaTypeException;
import org.springframework.http.MediaType;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.MultiValueMap;
import org.springframework.web.method.HandlerMethod;

2
spring-webflux/src/test/java/org/springframework/web/reactive/config/ResourceHandlerRegistryTests.java

@ -31,7 +31,7 @@ import org.springframework.cache.concurrent.ConcurrentMapCache; @@ -31,7 +31,7 @@ import org.springframework.cache.concurrent.ConcurrentMapCache;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.core.io.buffer.support.DataBufferTestUtils;
import org.springframework.http.CacheControl;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.mock.http.server.reactive.test.MockServerHttpRequest;
import org.springframework.mock.http.server.reactive.test.MockServerWebExchange;
import org.springframework.web.reactive.HandlerMapping;

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

@ -39,8 +39,8 @@ import org.springframework.http.HttpHeaders; @@ -39,8 +39,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.server.reactive.PathContainer;
import org.springframework.http.server.reactive.RequestPath;
import org.springframework.http.server.PathContainer;
import org.springframework.http.server.RequestPath;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;

2
spring-webflux/src/test/java/org/springframework/web/reactive/handler/SimpleUrlHandlerMappingTests.java

@ -24,7 +24,7 @@ import org.springframework.context.annotation.Bean; @@ -24,7 +24,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.http.HttpMethod;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.mock.http.server.reactive.test.MockServerHttpRequest;
import org.springframework.web.reactive.HandlerMapping;
import org.springframework.web.server.ServerWebExchange;

2
spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceWebHandlerTests.java

@ -44,7 +44,7 @@ import org.springframework.http.HttpHeaders; @@ -44,7 +44,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.server.reactive.PathContainer;
import org.springframework.http.server.PathContainer;
import org.springframework.mock.http.server.reactive.test.MockServerHttpRequest;
import org.springframework.mock.http.server.reactive.test.MockServerHttpResponse;
import org.springframework.mock.http.server.reactive.test.MockServerWebExchange;

Loading…
Cancel
Save