public class ResponseResultHandler extends Object implements HandlerResultHandler
HandlerResultHandler
implementation that supports Response
s.Constructor and Description |
---|
ResponseResultHandler()
Create a
ResponseResultHandler with default strategies. |
ResponseResultHandler(StrategiesSupplier strategies)
Create a
ResponseResultHandler with the given strategies. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
handleResult(org.springframework.web.server.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 given
HandlerResult . |
public ResponseResultHandler()
ResponseResultHandler
with default strategies.public ResponseResultHandler(StrategiesSupplier strategies)
ResponseResultHandler
with the given strategies.public boolean supports(HandlerResult result)
HandlerResultHandler
HandlerResult
.supports
in interface HandlerResultHandler
result
- result object to checkpublic reactor.core.publisher.Mono<Void> handleResult(org.springframework.web.server.ServerWebExchange exchange, HandlerResult result)
HandlerResultHandler
handleResult
in interface HandlerResultHandler
exchange
- current server exchangeresult
- the result from the handlingMono<Void>
to indicate when request handling is complete.