HandlerResultHandler that handles return values from methods annotated
with @ResponseBody writing to the body of the request or response with
an HttpMessageWriter.
By default the order for this result handler is set to 100. As it detects
the presence of @ResponseBody it should be ordered after result
handlers that look for a specific return type. Note however that this handler
does recognize and explicitly ignores the ResponseEntity return type.
| Access | Constructor and Description |
|---|---|
| public | ResponseBodyResultHandler(List<HttpMessageWriter<?>>
the writers for serializing to the response body writers, RequestedContentTypeResolver to determine the requested content type resolver)Basic constructor with a default |
| public | ResponseBodyResultHandler(List<HttpMessageWriter<?>>
the writers for serializing to the response body writers, RequestedContentTypeResolver to determine the requested content type resolver, ReactiveAdapterRegistry for adaptation to reactive types registry)Constructor with an |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | handleResult(ServerWebExchange
current server exchange exchange, HandlerResult the result from the handling result)Implements org. Process the given result modifying response headers and/or writing data to the response. |
| public boolean | supports(HandlerResult
the result object to check result)Implements org. Whether this handler supports the given |
| ResponseBodyResultHandler | back to summary |
|---|---|
| public ResponseBodyResultHandler(List<HttpMessageWriter<?>> writers, RequestedContentTypeResolver resolver) Basic constructor with a default
| |
| ResponseBodyResultHandler | back to summary |
|---|---|
| public ResponseBodyResultHandler(List<HttpMessageWriter<?>> writers, RequestedContentTypeResolver resolver, ReactiveAdapterRegistry registry) Constructor with an
| |
| handleResult | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Process the given result modifying response headers and/or writing data to the response.
| |
| supports | back to summary |
|---|---|
| public boolean supports(HandlerResult result) Implements org. Doc from org. Whether this handler supports the given
| |