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.AsyncHandlerMethodReturnValueHandlerpublic boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
supportsReturnType in interface org.springframework.web.method.support.HandlerMethodReturnValueHandlerpublic 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.HandlerMethodReturnValueHandlerExceptionprotected org.springframework.web.context.request.async.DeferredResult<?> convertToDeferredResult(org.springframework.http.ResponseEntity<rx.Single<?>> responseEntity,
rx.Single<?> single)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.