Improve Javadoc for HandlerAdapter and HandlerMapping

This commit is contained in:
Sebastien Deleuze 2015-11-25 10:35:09 +01:00
parent d319edba28
commit b18919d111
2 changed files with 10 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public interface HandlerAdapter {
* @param handler handler to use. This object must have previously been passed
* to the {@code supports} method of this interface, which must have
* returned {@code true}.
* @return An {@link HandlerResult} instance
* @return A {@link Publisher} object that produces a single {@link HandlerResult} element
*/
Publisher<HandlerResult> handle(ReactiveServerHttpRequest request,
ReactiveServerHttpResponse response, Object handler);

View File

@ -21,10 +21,19 @@ import org.reactivestreams.Publisher;
import org.springframework.http.server.ReactiveServerHttpRequest;
/**
* Interface to be implemented by objects that define a mapping between
* requests and handler objects.
*
* @author Rossen Stoyanchev
* @author Sebastien Deleuze
*/
public interface HandlerMapping {
/**
* Return a handler for this request.
* @param request current HTTP request
* @return A {@link Publisher} object that produces a single handler element
*/
Publisher<Object> getHandler(ReactiveServerHttpRequest request);
}