public interface HandlerMethodReturnValueHandler
Message
handling method.Modifier and Type | Field and Description |
---|---|
static String |
DATA_BUFFER_FACTORY_HEADER
Header containing a DataBufferFactory for use in return value handling.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<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.
|
static final String DATA_BUFFER_FACTORY_HEADER
boolean supportsReturnType(MethodParameter returnType)
returnType
- the method return type to checktrue
if this handler supports the supplied return type;
false
otherwisereactor.core.publisher.Mono<Void> handleReturnValue(@Nullable Object returnValue, MethodParameter returnType, Message<?> message)
returnValue
- the value returned from the handler methodreturnType
- the type of the return value. This type must have previously
been passed to supportsReturnType(MethodParameter)
and it must have returned true
.Mono<Void>
to indicate when handling is complete.