Polishing
This commit is contained in:
parent
e638fef508
commit
2f682e1035
|
|
@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -73,7 +73,7 @@ public interface RequestPredicate {
|
||||||
* Transform the given request into a request used for a nested route. For instance,
|
* 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
|
* a path-based predicate can return a {@code ServerRequest} with a the path remaining
|
||||||
* after a match.
|
* 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()}
|
* {@link #test(ServerRequest)} evaluates to {@code true}; or {@link Optional#empty()}
|
||||||
* if it evaluates to {@code false}.
|
* if it evaluates to {@code false}.
|
||||||
* @param request the request to be nested
|
* @param request the request to be nested
|
||||||
|
|
|
||||||
|
|
@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -82,7 +82,6 @@ public abstract class RequestPredicates {
|
||||||
return request -> true;
|
return request -> true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a {@code RequestPredicate} that matches if the request's
|
* Return a {@code RequestPredicate} that matches if the request's
|
||||||
* HTTP method is equal to the given method.
|
* HTTP method is equal to the given method.
|
||||||
|
|
|
||||||
|
|
@ -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
|
@NonNullApi
|
||||||
@NonNullFields
|
@NonNullFields
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue