Package cn.royalcms.component.api
Class CustomResponseReturnValueHandler
- java.lang.Object
-
- cn.royalcms.component.api.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 Summary
Constructors Constructor Description CustomResponseReturnValueHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleReturnValue(Object data, org.springframework.core.MethodParameter methodParameter, org.springframework.web.method.support.ModelAndViewContainer modelAndViewContainer, org.springframework.web.context.request.NativeWebRequest nativeWebRequest)
boolean
isAsyncReturnValue(Object o, org.springframework.core.MethodParameter methodParameter)
boolean
supportsReturnType(org.springframework.core.MethodParameter methodParameter)
-
-
-
Method Detail
-
isAsyncReturnValue
public boolean isAsyncReturnValue(Object o, org.springframework.core.MethodParameter methodParameter)
- Specified by:
isAsyncReturnValue
in interfaceorg.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler
-
supportsReturnType
public boolean supportsReturnType(org.springframework.core.MethodParameter methodParameter)
- Specified by:
supportsReturnType
in interfaceorg.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 interfaceorg.springframework.web.method.support.HandlerMethodReturnValueHandler
- Throws:
Exception
-
-