Package org.springframework.web.reactive
Interface HandlerResultHandler
- All Known Implementing Classes:
ResponseBodyResultHandler
,ResponseEntityResultHandler
,ServerResponseResultHandler
,ViewResolutionResultHandler
public interface HandlerResultHandler
Process the
HandlerResult
, usually returned by an HandlerAdapter
.- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Sebastien Deleuze
-
Method Summary
Modifier and TypeMethodDescriptionreactor.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 Details
-
supports
Whether this handler supports the givenHandlerResult
.- Parameters:
result
- the result object to check- Returns:
- whether this object can use the given result
-
handleResult
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.
-