public interface HandlerMethodReturnValueHandler
Message
.Modifier and Type | Method and Description |
---|---|
void |
handleReturnValue(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 Object returnValue, MethodParameter returnType, Message<?> message) throws 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 calledException
- if the return value handling results in an error