インターフェースの使用
org.springframework.web.method.support.HandlerMethodReturnValueHandler
パッケージ
説明
ビルトイン
MockMvcBuilder
実装が含まれています。 アノテーションベースのハンドラーメソッド処理のクラスをサポートします。
ハンドラーメソッド処理の汎用サポートクラス。
Spring MVC のアノテーションベースのセットアップ。
org.springframework.web.method.annotation
パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。org.springframework.test.web.servlet.client 内の HandlerMethodReturnValueHandler 使用
修飾子と型メソッド説明MockMvcWebTestClient.ControllerSpec.customReturnValueHandlers
(HandlerMethodReturnValueHandler... handlers) カスタム戻り値ハンドラーを提供します。org.springframework.test.web.servlet.setup 内の HandlerMethodReturnValueHandler 使用
修飾子と型メソッド説明StandaloneMockMvcBuilder.setCustomReturnValueHandlers
(HandlerMethodReturnValueHandler... handlers) コントローラーメソッドの戻り値のカスタムハンドラーを提供します。org.springframework.web.method.annotation 内の HandlerMethodReturnValueHandler 使用
修飾子と型クラス説明class
class
@ModelAttribute
アノテーション付きメソッド引数を解決し、@ModelAttribute
アノテーション付きメソッドからの戻り値を処理します。class
org.springframework.web.method.support 内の HandlerMethodReturnValueHandler 使用
修飾子と型メソッド説明HandlerMethodReturnValueHandlerComposite.getHandlers()
登録されたハンドラーを持つ読み取り専用リスト、または空のリストを返します。修飾子と型メソッド説明HandlerMethodReturnValueHandlerComposite.addHandler
(HandlerMethodReturnValueHandler handler) 指定されたHandlerMethodReturnValueHandler
を追加します。修飾子と型メソッド説明HandlerMethodReturnValueHandlerComposite.addHandlers
(ListSE<? extends HandlerMethodReturnValueHandler> handlers) 指定されたHandlerMethodReturnValueHandlers
を追加します。org.springframework.web.servlet.config.annotation 内の HandlerMethodReturnValueHandler 使用
修飾子と型メソッド説明protected final ListSE<HandlerMethodReturnValueHandler>
WebMvcConfigurationSupport.getReturnValueHandlers()
RequestMappingHandlerAdapter
およびExceptionHandlerExceptionResolver
で使用される共有戻り値ハンドラーへのアクセスを提供します。修飾子と型メソッド説明protected void
DelegatingWebMvcConfiguration.addReturnValueHandlers
(ListSE<HandlerMethodReturnValueHandler> returnValueHandlers) protected void
WebMvcConfigurationSupport.addReturnValueHandlers
(ListSE<HandlerMethodReturnValueHandler> returnValueHandlers) デフォルトで登録されているものに加えて、カスタムHandlerMethodReturnValueHandlers
を追加します。default void
WebMvcConfigurer.addReturnValueHandlers
(ListSE<HandlerMethodReturnValueHandler> handlers) カスタムコントローラーメソッドの戻り値の型をサポートするハンドラーを追加します。org.springframework.web.servlet.mvc.method.annotation 内の HandlerMethodReturnValueHandler 使用
修飾子と型クラス説明class
HttpMessageConverters
を使用してレスポンスに書き込むことにより、メソッドの戻り値を処理する機能でAbstractMessageConverterMethodArgumentResolver
を拡張します。class
型WebAsyncTask
の戻り値を処理します。class
型Callable
SE の戻り値を処理します。class
class
HttpEntity
およびRequestEntity
メソッドの引数値、および型HttpEntity
、ResponseEntity
、ErrorResponse
、ProblemDetail
の戻り値を解決します。class
HttpHeaders
の戻り値を処理します。class
型ModelAndView
の戻り値を処理して、ビューおよびモデル情報をModelAndViewContainer
にコピーします。class
この戻り値ハンドラーは、_any_ の戻り値の型(つまりclass
@RequestBody
でアノテーション付けされたメソッド引数を解決し、HttpMessageConverter
でリクエストまたはレスポンスの本文を読み書きすることにより、@ResponseBody
でアノテーション付けされたメソッドからの戻り値を処理します。class
class
型ServletRequestDataBinder
の WebDataBinder を介してデータバインディングを適用する、サーブレット固有のModelAttributeMethodProcessor
。class
型StreamingResponseBody
およびResponseEntity<StreamingResponseBody>
の戻り値をサポートします。class
型View
の戻り値を処理します。class
ビュー名参照として解釈する型void
およびString
の戻り値を処理します。修飾子と型メソッド説明ExceptionHandlerExceptionResolver.getCustomReturnValueHandlers()
カスタム戻り値ハンドラー、またはnull
を返します。RequestMappingHandlerAdapter.getCustomReturnValueHandlers()
カスタム戻り値ハンドラー、またはnull
を返します。protected ListSE<HandlerMethodReturnValueHandler>
ExceptionHandlerExceptionResolver.getDefaultReturnValueHandlers()
ExceptionHandlerExceptionResolver.setReturnValueHandlers(java.util.List<org.springframework.web.method.support.HandlerMethodReturnValueHandler>)
を介して提供される組み込みおよびカスタムハンドラーを含む、使用する戻り値ハンドラーのリストを返します。RequestMappingHandlerAdapter.getReturnValueHandlers()
構成済みのハンドラー、またはRequestMappingHandlerAdapter.afterPropertiesSet()
を介してまだ初期化されていない場合はnull
を返します。修飾子と型メソッド説明void
ExceptionHandlerExceptionResolver.setCustomReturnValueHandlers
(ListSE<HandlerMethodReturnValueHandler> returnValueHandlers) カスタム戻り値型のハンドラーを提供します。void
RequestMappingHandlerAdapter.setCustomReturnValueHandlers
(ListSE<HandlerMethodReturnValueHandler> returnValueHandlers) カスタム戻り値型のハンドラーを提供します。void
ExceptionHandlerExceptionResolver.setReturnValueHandlers
(ListSE<HandlerMethodReturnValueHandler> returnValueHandlers) サポートされている戻り値の型の完全なリストを構成し、そうでなければデフォルトで構成されるハンドラーをオーバーライドします。void
RequestMappingHandlerAdapter.setReturnValueHandlers
(ListSE<HandlerMethodReturnValueHandler> returnValueHandlers) サポートされている戻り値の型の完全なリストを構成し、そうでなければデフォルトで構成されるハンドラーをオーバーライドします。