Class AsyncTaskMethodReturnValueHandler

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.AsyncTaskMethodReturnValueHandler
All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodReturnValueHandler

public class AsyncTaskMethodReturnValueHandler extends Object implements org.springframework.web.method.support.HandlerMethodReturnValueHandler
Handles return values of type WebAsyncTask.
Since:
3.2
Author:
Rossen Stoyanchev
  • Constructor Details

    • AsyncTaskMethodReturnValueHandler

      public AsyncTaskMethodReturnValueHandler(@Nullable org.springframework.beans.factory.BeanFactory beanFactory)
  • Method Details

    • supportsReturnType

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

      public void handleReturnValue(@Nullable Object returnValue, org.springframework.core.MethodParameter returnType, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest) throws Exception
      Specified by:
      handleReturnValue in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
      Throws:
      Exception