Browse Source

Polishing

pull/22540/head
Arjen Poutsma 7 years ago
parent
commit
2f682e1035
  1. 4
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicate.java
  2. 3
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
  3. 18
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/package-info.java

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 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.
@ -73,7 +73,7 @@ public interface RequestPredicate { @@ -73,7 +73,7 @@ public interface RequestPredicate {
* Transform the given request into a request used for a nested route. For instance,
* a path-based predicate can return a {@code ServerRequest} with a the path remaining
* after a match.
* <p>The default implementation returns an {@code Optional} wrapping the given path if
* <p>The default implementation returns an {@code Optional} wrapping the given request if
* {@link #test(ServerRequest)} evaluates to {@code true}; or {@link Optional#empty()}
* if it evaluates to {@code false}.
* @param request the request to be nested

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 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.
@ -82,7 +82,6 @@ public abstract class RequestPredicates { @@ -82,7 +82,6 @@ public abstract class RequestPredicates {
return request -> true;
}
/**
* Return a {@code RequestPredicate} that matches if the request's
* HTTP method is equal to the given method.

18
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/package-info.java

@ -1,5 +1,21 @@ @@ -1,5 +1,21 @@
/*
* Copyright 2002-2019 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Provides the types that make up Spring's functional web framework.
* Provides the types that make up Spring's functional web framework for Reactive environments.
*/
@NonNullApi
@NonNullFields

Loading…
Cancel
Save