Class WebHandlerDecorator
java.lang.Object
org.springframework.web.server.handler.WebHandlerDecorator
- All Implemented Interfaces:
WebHandler
- Direct Known Subclasses:
ExceptionHandlingWebHandler,FilteringWebHandler,HttpWebHandlerAdapter
WebHandler that decorates and delegates to another WebHandler.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorsConstructorDescriptionWebHandlerDecorator(WebHandler delegate) Create aWebHandlerDecoratorfor the given delegate. -
Method Summary
Modifier and TypeMethodDescriptionReturn the wrapped delegate.reactor.core.publisher.Mono<Void>handle(ServerWebExchange exchange) Handle the web server exchange.toString()
-
Constructor Details
-
WebHandlerDecorator
Create aWebHandlerDecoratorfor the given delegate.- Parameters:
delegate- the WebHandler delegate
-
-
Method Details
-
getDelegate
Return the wrapped delegate. -
handle
Description copied from interface:WebHandlerHandle the web server exchange.- Specified by:
handlein interfaceWebHandler- Parameters:
exchange- the current server exchange- Returns:
Mono<Void>to indicate when request handling is complete
-
toString
-