public interface HandlerMethodReturnValueHandler
Message.| Modifier and Type | Method and Description |
|---|---|
void |
handleReturnValue(Object returnValue,
org.springframework.core.MethodParameter returnType,
Message<?> message)
Handle the given return value.
|
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType)
Whether the given method return type is
supported by this handler.
|
boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
returnType - the method return type to checktrue if this handler supports the supplied return type;
false otherwisevoid handleReturnValue(Object returnValue, org.springframework.core.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 truemessage - the message that caused this method to be calledException - if the return value handling results in an error