Class ResponseBodyResultHandler

All Implemented Interfaces:
Ordered, HandlerResultHandler

public class ResponseBodyResultHandler extends AbstractMessageWriterResultHandler implements HandlerResultHandler
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.

Since:
5.0
Author:
Rossen Stoyanchev, Stephane Maldini, Sebastien Deleuze, Arjen Poutsma