public class ResultResponseBodyHandler
extends org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandler
标准HTTP状态码
Constructor and Description |
---|
ResultResponseBodyHandler(List<org.springframework.http.codec.HttpMessageWriter<?>> writers,
org.springframework.web.reactive.accept.RequestedContentTypeResolver resolver,
org.springframework.core.ReactiveAdapterRegistry registry)
默认优先级高于 ResponseBodyResultHandler
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
handleResult(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.reactive.HandlerResult result) |
boolean |
supports(org.springframework.web.reactive.HandlerResult result) |
getMessageWriters, writeBody, writeBody
public ResultResponseBodyHandler(List<org.springframework.http.codec.HttpMessageWriter<?>> writers, org.springframework.web.reactive.accept.RequestedContentTypeResolver resolver, org.springframework.core.ReactiveAdapterRegistry registry)
public boolean supports(org.springframework.web.reactive.HandlerResult result)
supports
in interface org.springframework.web.reactive.HandlerResultHandler
supports
in class org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandler
public reactor.core.publisher.Mono<Void> handleResult(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.reactive.HandlerResult result)
handleResult
in interface org.springframework.web.reactive.HandlerResultHandler
handleResult
in class org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandler
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.