Top Description Methods
org.springframework.web.reactive

public Interface HandlerResultHandler

Known Direct Implementers
org.springframework.web.reactive.function.server.support.ServerResponseResultHandler, org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandler, org.springframework.web.reactive.result.method.annotation.ResponseEntityResultHandler, org.springframework.web.reactive.result.view.ViewResolutionResultHandler
Imports
reactor.core.publisher.Mono, org.springframework.web.server.ServerWebExchange

Process the HandlerResult, usually returned by a HandlerAdapter.
Authors
Rossen Stoyanchev, Sebastien Deleuze
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public Mono<Void>

Returns:

Mono<Void> to indicate when request handling is complete.
handleResult
(ServerWebExchange
current server exchange
exchange
,
HandlerResult
the result from the handling
result
)

Process the given result modifying response headers and/or writing data to the response.

public boolean

Returns:

whether this object can use the given result
supports
(HandlerResult
the result object to check
result
)

Whether this handler supports the given HandlerResult.

Method Detail

handleResultback to summary
public Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result)

Process the given result modifying response headers and/or writing data to the response.

Parameters
exchange:ServerWebExchange

current server exchange

result:HandlerResult

the result from the handling

Returns:Mono<Void>

Mono<Void> to indicate when request handling is complete.

supportsback to summary
public boolean supports(HandlerResult result)

Whether this handler supports the given HandlerResult.

Parameters
result:HandlerResult

the result object to check

Returns:boolean

whether this object can use the given result