spring-webmvc

org.springframework.web.servlet.mvc.method.annotation
Class AsyncMethodReturnValueHandler

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

public class AsyncMethodReturnValueHandler
extends java.lang.Object
implements org.springframework.web.method.support.HandlerMethodReturnValueHandler

Handles return values of type Callable and DeferredResult.

This handler does not have a defined behavior for null return values and will raise an IllegalArgumentException.

Since:
3.2
Author:
Rossen Stoyanchev

Constructor Summary
AsyncMethodReturnValueHandler()
           
 
Method Summary
 void handleReturnValue(java.lang.Object returnValue, org.springframework.core.MethodParameter returnType, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest)
           
 boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncMethodReturnValueHandler

public AsyncMethodReturnValueHandler()
Method Detail

supportsReturnType

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

handleReturnValue

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

spring-webmvc