Package org.springframework.web.server
Interface WebHandler
- All Known Implementing Classes:
DispatcherHandler,ExceptionHandlingWebHandler,FilteringWebHandler,HttpWebHandlerAdapter,ResourceWebHandler,WebHandlerDecorator
public interface WebHandler
Contract to handle a web request.Use
HttpWebHandlerAdapterto adapt aWebHandlerto anHttpHandler. TheWebHttpHandlerBuilderprovides a convenient way to do that while also optionally configuring one or more filters and/or exception handlers.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<Void>handle(ServerWebExchange exchange)Handle the web server exchange.
Method Detail
handle
reactor.core.publisher.Mono<Void> handle(ServerWebExchange exchange)
Handle the web server exchange.- Parameters:
exchange- the current server exchange- Returns:
Mono<Void>to indicate when request handling is complete