public class SingleReturnValueHandler extends Object implements org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
AsyncHandlerMethodReturnValueHandler
that handles Single
return types.Constructor and Description |
---|
SingleReturnValueHandler() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.context.request.async.DeferredResult<?> |
convertToDeferredResult(org.springframework.http.ResponseEntity<rx.Single<?>> responseEntity,
rx.Single<?> single) |
void |
handleReturnValue(Object returnValue,
org.springframework.core.MethodParameter returnType,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest) |
boolean |
isAsyncReturnValue(Object returnValue,
org.springframework.core.MethodParameter returnType) |
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType) |
public boolean isAsyncReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType)
isAsyncReturnValue
in interface org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
public boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
supportsReturnType
in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
public void handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest) throws Exception
handleReturnValue
in interface org.springframework.web.method.support.HandlerMethodReturnValueHandler
Exception
protected org.springframework.web.context.request.async.DeferredResult<?> convertToDeferredResult(org.springframework.http.ResponseEntity<rx.Single<?>> responseEntity, rx.Single<?> single)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.