Top Description Fields Constructors Methods
org.springframework.web.server.handler

public Class WebHandlerDecorator

extends Object
implements WebHandler
Class Inheritance
All Implemented Interfaces
org.springframework.web.server.WebHandler
Known Direct Subclasses
org.springframework.web.server.adapter.HttpWebHandlerAdapter, org.springframework.web.server.handler.ExceptionHandlingWebHandler, org.springframework.web.server.handler.FilteringWebHandler
Imports
reactor.core.publisher.Mono, org.springframework.util.Assert, org.springframework.web.server.ServerWebExchange, .WebHandler

WebHandler that decorates and delegates to another WebHandler.
Author
Rossen Stoyanchev
Since
5.0

Field Summary

Modifier and TypeField and Description
private final WebHandler

Constructor Summary

AccessConstructor and Description
public
WebHandlerDecorator(WebHandler
the WebHandler delegate
delegate
)

Create a WebHandlerDecorator for the given delegate.

Method Summary

Modifier and TypeMethod and Description
public WebHandler
getDelegate()

Return the wrapped delegate.

public Mono<Void>
handle(ServerWebExchange
the current server exchange
exchange
)

Implements org.springframework.web.server.WebHandler.handle.

Handle the web server exchange.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

delegateback to summary
private final WebHandler delegate

Constructor Detail

WebHandlerDecoratorback to summary
public WebHandlerDecorator(WebHandler delegate)

Create a WebHandlerDecorator for the given delegate.

Parameters
delegate:WebHandler

the WebHandler delegate

Method Detail

getDelegateback to summary
public WebHandler getDelegate()

Return the wrapped delegate.

handleback to summary
public Mono<Void> handle(ServerWebExchange exchange)

Implements org.springframework.web.server.WebHandler.handle.

Doc from org.springframework.web.server.WebHandler.handle.

Handle the web server exchange.

Parameters
exchange:ServerWebExchange

the current server exchange

Returns:Mono<Void>

Mono<Void> to indicate when request handling is complete

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override