Top Description Methods
org.springframework.web.server

public Interface WebHandler

Known Direct Implementers
org.springframework.web.server.handler.WebHandlerDecorator
Imports
reactor.core.publisher.Mono, org.springframework.web.server.adapter.HttpWebHandlerAdapter, .WebHttpHandlerBuilder

Contract to handle a web request.

Use HttpWebHandlerAdapter to adapt a WebHandler to an HttpHandler. The WebHttpHandlerBuilder provides a convenient way to do that while also optionally configuring one or more filters and/or exception handlers.

Author
Rossen Stoyanchev
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public Mono<Void>

Returns:

Mono<Void> to indicate when request handling is complete
handle
(ServerWebExchange
the current server exchange
exchange
)

Handle the web server exchange.

Method Detail

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

Handle the web server exchange.

Parameters
exchange:ServerWebExchange

the current server exchange

Returns:Mono<Void>

Mono<Void> to indicate when request handling is complete