public interface HandlerMethodReturnValueHandler
Message
処理メソッドの呼び出しからの戻り値を処理します。修飾子と型 | フィールドと説明 |
---|---|
static StringSE | DATA_BUFFER_FACTORY_HEADER 戻り値の処理に使用する DataBufferFactory を含むヘッダー。 |
修飾子と型 | メソッドと説明 |
---|---|
reactor.core.publisher.Mono<VoidSE> | handleReturnValue(ObjectSE returnValue, MethodParameter returnType, Message<?> message) 指定された戻り値を処理します。 |
boolean | supportsReturnType(MethodParameter returnType) 指定されたメソッドの戻り型がこのハンドラーでサポートされているかどうか。 |
boolean supportsReturnType(MethodParameter returnType)
returnType
- チェックするメソッドの戻り値の型 true
。それ以外の場合は false
reactor.core.publisher.Mono<VoidSE> handleReturnValue(@Nullable ObjectSE returnValue, MethodParameter returnType, Message<?> message)
returnValue
- ハンドラーメソッドから返された値 returnType
- 戻り値の型。この型は以前に supportsReturnType(MethodParameter)
に渡されていて、true
を返している必要があります。Mono<Void>
は、処理が完了したことを示します。