List of usage examples for org.springframework.web.reactive HandlerAdapter supports
boolean supports(Object handler);
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)); }