Class ResultHandlerMethodReturnValueHandler
java.lang.Object
dmx.fun.spring.boot.web.ResultHandlerMethodReturnValueHandler
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodReturnValueHandler
@NullMarked
public final class ResultHandlerMethodReturnValueHandler
extends Object
implements org.springframework.web.method.support.HandlerMethodReturnValueHandler
-
Constructor Summary
ConstructorsConstructorDescriptionResultHandlerMethodReturnValueHandler(org.springframework.web.method.support.HandlerMethodReturnValueHandler delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleReturnValue(@Nullable Object returnValue, org.springframework.core.MethodParameter returnType, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest) booleansupportsReturnType(org.springframework.core.MethodParameter returnType)
-
Constructor Details
-
ResultHandlerMethodReturnValueHandler
public ResultHandlerMethodReturnValueHandler(org.springframework.web.method.support.HandlerMethodReturnValueHandler delegate) Creates a handler that unwrapsResult,Validated, andTryreturn values and delegates serialization of the unwrapped value (or error) to the given handler.- Parameters:
delegate- the handler that writes the response body — typically aRequestResponseBodyMethodProcessor
-
-
Method Details
-
supportsReturnType
public boolean supportsReturnType(org.springframework.core.MethodParameter returnType) - Specified by:
supportsReturnTypein interfaceorg.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:
handleReturnValuein interfaceorg.springframework.web.method.support.HandlerMethodReturnValueHandler- Throws:
Exception
-