Class webHandlerDecorator

java.lang.Object
org.springframework.web.server.handler.webHandlerDecorator
All Implemented Interfaces:
webHandler
Direct Known Subclasses:
ExceptionHandlingwebHandler, FilteringwebHandler, HttpwebHandlerAdapter

public class webHandlerDecorator extends Object implements webHandler
webHandler that decorates and delegates to another webHandler.
Since:
5.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • webHandlerDecorator

      public webHandlerDecorator(webHandler delegate)
      Create a webHandlerDecorator for the given delegate.
      Parameters:
      delegate - the webHandler delegate
  • Method Details

    • getDelegate

      public webHandler getDelegate()
      Return the wrapped delegate.
    • handle

      public reactor.core.publisher.Mono<Void> handle(ServerwebExchange exchange)
      Description copied from interface: webHandler
      Handle the web server exchange.
      Specified by:
      handle in interface webHandler
      Parameters:
      exchange - the current server exchange
      Returns:
      Mono<Void> to indicate when request handling is complete
    • toString

      public String toString()
      Overrides:
      toString in class Object