Class CustomResponseReturnValueHandler

  • All Implemented Interfaces:
    org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler, org.springframework.web.method.support.HandlerMethodReturnValueHandler

    public class CustomResponseReturnValueHandler
    extends Object
    implements org.springframework.web.method.support.HandlerMethodReturnValueHandler, org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
    • Constructor Detail

      • CustomResponseReturnValueHandler

        public CustomResponseReturnValueHandler()
    • Method Detail

      • isAsyncReturnValue

        public boolean isAsyncReturnValue​(Object o,
                                          org.springframework.core.MethodParameter methodParameter)
        Specified by:
        isAsyncReturnValue in interface org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
      • supportsReturnType

        public boolean supportsReturnType​(org.springframework.core.MethodParameter methodParameter)
        Specified by:
        supportsReturnType in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
      • handleReturnValue

        public void handleReturnValue​(Object data,
                                      org.springframework.core.MethodParameter methodParameter,
                                      org.springframework.web.method.support.ModelAndViewContainer modelAndViewContainer,
                                      org.springframework.web.context.request.NativeWebRequest nativeWebRequest)
                               throws Exception
        Specified by:
        handleReturnValue in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
        Throws:
        Exception