接口 HandlerResultHandler
- 所有已知实现类:
ResponseBodyResultHandler,ResponseEntityResultHandler,ServerResponseResultHandler,ViewResolutionResultHandler
public interface HandlerResultHandler
Process theHandlerResult, usually returned by anHandlerAdapter.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev, Sebastien Deleuze
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>handleResult(ServerWebExchange exchange, HandlerResult result)Process the given result modifying response headers and/or writing data to the response.booleansupports(HandlerResult result)Whether this handler supports the givenHandlerResult.
方法详细资料
supports
boolean supports(HandlerResult result)
Whether this handler supports the givenHandlerResult.- 参数:
result- the result object to check- 返回:
- 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.- 参数:
exchange- current server exchangeresult- the result from the handling- 返回:
Mono<Void>to indicate when request handling is complete.