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
-