Example usage for org.springframework.web.reactive HandlerAdapter supports

List of usage examples for org.springframework.web.reactive HandlerAdapter supports

Introduction

In this page you can find the example usage for org.springframework.web.reactive HandlerAdapter supports.

Prototype

boolean supports(Object handler);

Source Link

Document

Whether this HandlerAdapter supports the given handler .

Usage

From source file:org.springframework.web.reactive.DispatcherHandler.java

private Mono<HandlerResult> invokeHandler(ServerWebExchange exchange, Object handler) {
    if (this.handlerAdapters != null) {
        for (HandlerAdapter handlerAdapter : this.handlerAdapters) {
            if (handlerAdapter.supports(handler)) {
                return handlerAdapter.handle(exchange, handler);
            }/*from  ww  w.ja va  2 s.c o m*/
        }
    }
    return Mono.error(new IllegalStateException("No HandlerAdapter: " + handler));
}