public interface HandlerMethodReturnValueHandler
Message
.Modifier and Type | Method and Description |
---|---|
void |
handleReturnValue(java.lang.Object returnValue,
MethodParameter returnType,
Message<?> message)
Handle the given return value.
|
boolean |
supportsReturnType(MethodParameter returnType)
Whether the given method return type is
supported by this handler.
|
boolean supportsReturnType(MethodParameter returnType)
returnType
- the method return type to checktrue
if this handler supports the supplied return type;
false
otherwisevoid handleReturnValue(@Nullable java.lang.Object returnValue, MethodParameter returnType, Message<?> message) throws java.lang.Exception
returnValue
- the value returned from the handler methodreturnType
- the type of the return value. This type must have previously
been passed to supportsReturnType(org.springframework.core.MethodParameter)
and it must have returned true
.message
- the message that caused this method to be calledjava.lang.Exception
- if the return value handling results in an error