Package org.springframework.web.reactive
Interface HandlerResultHandler
- All Known Implementing Classes:
ResponseBodyResultHandler
,ResponseEntityResultHandler
,ServerResponseResultHandler
,ViewResolutionResultHandler
public interface HandlerResultHandler
Process theHandlerResult
, usually returned by anHandlerAdapter
.- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Sebastien Deleuze
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<Void>
handleResult(ServerWebExchange exchange, HandlerResult result)
Process the given result modifying response headers and/or writing data to the response.boolean
supports(HandlerResult result)
Whether this handler supports the givenHandlerResult
.
Method Detail
supports
boolean supports(HandlerResult result)
Whether this handler supports the givenHandlerResult
.- Parameters:
result
- the result object to check- Returns:
- whether or not this object can use the given result
handleResult
reactor.core.publisher.Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result)
Process the given result modifying response headers and/or writing data to the response.- Parameters:
exchange
- current server exchangeresult
- the result from the handling- Returns:
Mono<Void>
to indicate when request handling is complete.