接口 WebHandler
- 所有已知实现类:
DispatcherHandler
,ExceptionHandlingWebHandler
,FilteringWebHandler
,HttpWebHandlerAdapter
,ResourceWebHandler
,WebHandlerDecorator
public interface WebHandler
Contract to handle a web request.Use
HttpWebHandlerAdapter
to adapt aWebHandler
to anHttpHandler
. TheWebHttpHandlerBuilder
provides a convenient way to do that while also optionally configuring one or more filters and/or exception handlers.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>
handle(ServerWebExchange exchange)
Handle the web server exchange.
方法详细资料
handle
reactor.core.publisher.Mono<Void> handle(ServerWebExchange exchange)
Handle the web server exchange.- 参数:
exchange
- the current server exchange- 返回:
Mono<Void>
to indicate when request handling is complete