Example usage for Java org.springframework.web.servlet.mvc.method.annotation ResponseBodyAdvice fields, constructors, methods, implement or subclass
The text is from its open source code.
T | beforeBodyWrite(@Nullable T body, MethodParameter returnType, MediaType selectedContentType, Class extends HttpMessageConverter>> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) Invoked after an HttpMessageConverter is selected and just before its write method is invoked. |
boolean | supports(MethodParameter returnType, Class extends HttpMessageConverter>> converterType) Whether this component supports the given controller method return type and the selected HttpMessageConverter type. |