Polishing

This commit is contained in:
Juergen Hoeller
2017-02-21 22:41:40 +01:00
parent f219680d42
commit d2cc97af47
16 changed files with 83 additions and 80 deletions

View File

@@ -26,11 +26,10 @@ import org.springframework.http.codec.HttpMessageReader;
/**
* A function that can extract data from a {@link ReactiveHttpInputMessage} body.
*
* @param <T> the type of data to extract
* @param <M> the type of {@link ReactiveHttpInputMessage} this extractor can be applied to
*
* @author Arjen Poutsma
* @since 5.0
* @param <T> the type of data to extract
* @param <M> the type of {@link ReactiveHttpInputMessage} this extractor can be applied to
* @see BodyExtractors
*/
@FunctionalInterface

View File

@@ -28,11 +28,10 @@ import org.springframework.http.codec.HttpMessageWriter;
/**
* A combination of functions that can populate a {@link ReactiveHttpOutputMessage} body.
*
* @param <T> the type of data to insert
* @param <M> the type of {@link ReactiveHttpOutputMessage} this inserter can be applied to
*
* @author Arjen Poutsma
* @since 5.0
* @param <T> the type of data to insert
* @param <M> the type of {@link ReactiveHttpOutputMessage} this inserter can be applied to
* @see BodyInserters
*/
@FunctionalInterface

View File

@@ -26,10 +26,10 @@ import org.springframework.web.reactive.function.server.support.ServerRequestWra
/**
* Represents a function that filters a {@linkplain HandlerFunction handler function}.
*
* @param <T> the type of the {@linkplain HandlerFunction handler function} to filter
* @param <R> the type of the response of the function
* @author Arjen Poutsma
* @since 5.0
* @param <T> the type of the {@linkplain HandlerFunction handler function} to filter
* @param <R> the type of the response of the function
* @see RouterFunction#filter(HandlerFilterFunction)
*/
@FunctionalInterface

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2017 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.
@@ -21,9 +21,10 @@ import reactor.core.publisher.Mono;
/**
* Represents a function that handles a {@linkplain ServerRequest request}.
*
* @param <T> the type of the response of the function
* @author Arjen Poutsma
* @since 5.0
* @param <T> the type of the response of the function
* @see RouterFunction
*/
@FunctionalInterface
public interface HandlerFunction<T extends ServerResponse> {

View File

@@ -21,9 +21,9 @@ import reactor.core.publisher.Mono;
/**
* Represents a function that routes to a {@linkplain HandlerFunction handler function}.
*
* @param <T> the type of the {@linkplain HandlerFunction handler function} to route to
* @author Arjen Poutsma
* @since 5.0
* @param <T> the type of the {@linkplain HandlerFunction handler function} to route to
* @see RouterFunctions
*/
@FunctionalInterface