public class HandlerResult extends ObjectSE
コンストラクターと説明 |
---|
HandlerResult(ObjectSE handler, ObjectSE returnValue, MethodParameter returnType) 新しい HandlerResult を作成します。 |
HandlerResult(ObjectSE handler, ObjectSE returnValue, MethodParameter returnType, BindingContext context) 新しい HandlerResult を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
reactor.core.publisher.Mono<HandlerResult> | applyExceptionHandler(ThrowableSE failure) 例外ハンドラーを適用して、代替結果を返します。 |
BindingContext | getBindingContext() リクエストの処理に使用される BindingContext を返します。 |
ObjectSE | getHandler() リクエストを処理したハンドラーを返します。 |
Model | getModel() リクエストの処理に使用されるモデルを返します。 |
ResolvableType | getReturnType() ハンドラーから返された値の型を返します。例: |
MethodParameter | getReturnTypeSource() returnType の作成元である MethodParameter を返します。 |
ObjectSE | getReturnValue() もしあればハンドラーから返された値を返します。 |
boolean | hasExceptionHandler() 例外ハンドラーがあるかどうか。 |
HandlerResult | setExceptionHandler(FunctionSE<ThrowableSE,reactor.core.publisher.Mono<HandlerResult>> function) 結果の処理が失敗したときに別の結果を生成するために使用できる例外ハンドラーを構成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public HandlerResult(ObjectSE handler, @Nullable ObjectSE returnValue, MethodParameter returnType)
HandlerResult
を作成します。handler
- リクエストを処理したハンドラー returnValue
- おそらく null
ハンドラーからの戻り値 returnType
- 戻り値の型 public HandlerResult(ObjectSE handler, @Nullable ObjectSE returnValue, MethodParameter returnType, @Nullable BindingContext context)
HandlerResult
を作成します。handler
- リクエストを処理したハンドラー returnValue
- おそらく null
ハンドラーからの戻り値 returnType
- 戻り値の型 context
- リクエスト処理に使用されるバインディングコンテキスト public ObjectSE getHandler()
public ResolvableType getReturnType()
MethodParameter
を取得するには、getReturnTypeSource()
も参照してください。public MethodParameter getReturnTypeSource()
returnType
の作成元である MethodParameter
を返します。public BindingContext getBindingContext()
public Model getModel()
getBindingContext().getModel()
のショートカットです。public HandlerResult setExceptionHandler(FunctionSE<ThrowableSE,reactor.core.publisher.Mono<HandlerResult>> function)
function
- エラーハンドラー public boolean hasExceptionHandler()
public reactor.core.publisher.Mono<HandlerResult> applyExceptionHandler(ThrowableSE failure)
failure
- 例外