public class WebHandlerDecorator extends Object implements WebHandler
WebHandler
that decorates and delegates to another WebHandler
.Constructor and Description |
---|
WebHandlerDecorator(WebHandler delegate)
Create a
WebHandlerDecorator for the given delegate. |
Modifier and Type | Method and Description |
---|---|
WebHandler |
getDelegate()
Return the wrapped delegate.
|
reactor.core.publisher.Mono<Void> |
handle(ServerWebExchange exchange)
Handle the web server exchange.
|
String |
toString() |
public WebHandlerDecorator(WebHandler delegate)
WebHandlerDecorator
for the given delegate.delegate
- the WebHandler delegatepublic WebHandler getDelegate()
public reactor.core.publisher.Mono<Void> handle(ServerWebExchange exchange)
WebHandler
handle
in interface WebHandler
exchange
- the current server exchangeMono<Void>
to indicate when request handling is complete