クラス ServletInvocableHandlerMethod


public class ServletInvocableHandlerMethod extends InvocableHandlerMethod
登録された HandlerMethodReturnValueHandler を介して戻り値を処理する機能で InvocableHandlerMethod を拡張し、メソッドレベルの @ResponseStatus アノテーションに基づくレスポンスステータスの設定もサポートします。

null の戻り値(void を含む)は、@ResponseStatus アノテーション、変更されていないチェック条件(ServletWebRequest.checkNotModified(long) を参照)、またはレスポンスストリームへのアクセスを提供するメソッド引数と組み合わせて、リクエスト処理の終了として解釈される場合があります。

導入:
3.1
作成者:
Rossen Stoyanchev, Juergen Hoeller
  • コンストラクターの詳細

    • ServletInvocableHandlerMethod

      public ServletInvocableHandlerMethod(ObjectSE handler, MethodSE method)
      指定されたハンドラーおよびメソッドからインスタンスを作成します。
    • ServletInvocableHandlerMethod

      public ServletInvocableHandlerMethod(ObjectSE handler, MethodSE method, @Nullable MessageSource messageSource)
      MessageSource も受け入れる ServletInvocableHandlerMethod(Object, Method) のバリアント。で @ResponseStatus メッセージを解決します。
      導入:
      5.3.10
    • ServletInvocableHandlerMethod

      public ServletInvocableHandlerMethod(HandlerMethod handlerMethod)
      HandlerMethod からインスタンスを作成します。
  • メソッドの詳細