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
ConstructorDescriptionWebHandlerDecorator
(WebHandler delegate) Create aWebHandlerDecorator
for 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 aWebHandlerDecorator
for the given delegate.- Parameters:
delegate
- the WebHandler delegate
-
-
Method Details
-
getDelegate
Return the wrapped delegate. -
handle
Description copied from interface:WebHandler
Handle the web server exchange.- Specified by:
handle
in interfaceWebHandler
- Parameters:
exchange
- the current server exchange- Returns:
Mono<Void>
to indicate when request handling is complete
-
toString
-