クラスの使用
org.springframework.web.method.HandlerMethod
HandlerMethod を使用するパッケージ
パッケージ
説明
Spring MVC の
org.springframework.web.servlet.mvc.method
パッケージで使用される、ハンドラーメソッド処理の共通インフラストラクチャ。 アノテーションベースのハンドラーメソッド処理のクラスをサポートします。
ハンドラーメソッド処理の汎用サポートクラス。
Spring WebFlux 構成インフラストラクチャ。
ハンドラーメソッド処理のインフラストラクチャ。
アノテーションベースのハンドラーメソッド処理のインフラストラクチャ。
カスタム実装の抽象基本クラスを含む、標準の HandlerMapping 実装を提供します。
org.springframework.web.method
パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.method.annotation
パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。org.springframework.web.method 内の HandlerMethod 使用
HandlerMethod を返す org.springframework.web.method のメソッド修飾子と型メソッド説明HandlerMethod.createWithResolvedBean()
handler
が実際のハンドラーインスタンスではなく Bean 名である場合は、Spring 構成を通じて Bean 名を解決します (例:HandlerMethod.createWithValidateFlags()
HandlerMethod を再作成し、shouldValidateArguments()
およびshouldValidateReturnValue()
を初期化します。HandlerMethod.getResolvedFromHandlerMethod()
この HandlerMethod インスタンスがcreateWithResolvedBean()
を介して解決された HandlerMethod を返します。型 HandlerMethod のパラメーターを持つ org.springframework.web.method のコンストラクター修飾子コンストラクター説明protected
HandlerMethod
(HandlerMethod handlerMethod) サブクラスで使用するコンストラクターをコピーします。protected
HandlerMethod
(HandlerMethod handlerMethod, ObjectSE handler, boolean initValidateFlags) 指定された HandlerMethod をコピーしてハンドラーを置き換え、オプションで検証アノテーションの存在をチェックする新しい HandlerMethod インスタンスを再作成します。org.springframework.web.method.annotation 内の HandlerMethod 使用
型 HandlerMethod のパラメーターを持つ org.springframework.web.method.annotation のメソッド修飾子と型メソッド説明void
ModelFactory.initModel
(NativeWebRequest request, ModelAndViewContainer container, HandlerMethod handlerMethod) 次の順序でモデルを設定します。@SessionAttributes
としてリストされている「既知の」セッション属性を取得します。protected boolean
InitBinderDataBinderFactory.isBinderMethodApplicable
(HandlerMethod initBinderMethod, WebDataBinder dataBinder) 指定された@InitBinder
メソッドを使用して、指定されたWebDataBinder
インスタンスを初期化するかどうかを決定します。org.springframework.web.method.support 内の HandlerMethod 使用
修飾子と型クラス説明class
HandlerMethodArgumentResolver
のリストを介して現在の HTTP リクエストから解決された引数値を使用して、基になるメソッドを呼び出すHandlerMethod
の拡張。型 HandlerMethod のパラメーターを持つ org.springframework.web.method.support のコンストラクターorg.springframework.web.reactive.config 内の HandlerMethod 使用
型 HandlerMethod の引数を持つ型を返す org.springframework.web.reactive.config のメソッド修飾子と型メソッド説明protected PredicateSE<HandlerMethod>
BlockingExecutionConfigurer.getBlockingControllerMethodPredicate()
型 HandlerMethod の型引数を持つ org.springframework.web.reactive.config のメソッドパラメーター修飾子と型メソッド説明BlockingExecutionConfigurer.setControllerMethodPredicate
(PredicateSE<HandlerMethod> predicate) 述語を構成して、コントローラーメソッドがブロックしているかどうか、およびエグゼキューターが構成されている場合は別のスレッドで呼び出す必要があるかどうかを判断します。org.springframework.web.reactive.result.method 内の HandlerMethod 使用
修飾子と型クラス説明class
HandlerMethodArgumentResolver
のリストを介して現在の HTTP リクエストから解決された引数値を使用して、基になるメソッドを呼び出すHandlerMethod
の拡張。class
InvocableHandlerMethod
を介して基礎となるメソッドを呼び出しますが、同期引数リゾルバーのみを使用するため、非同期ラッパーなしでHandlerResult
を直接返すことができるHandlerMethod
の拡張。修飾子と型メソッド説明protected HandlerMethod
AbstractHandlerMethodMapping.createHandlerMethod
(ObjectSE handler, MethodSE method) HandlerMethod インスタンスを作成します。protected HandlerMethod
AbstractHandlerMethodMapping.handleNoMatch
(SetSE<T> mappings, ServerWebExchange exchange) 一致するマッピングが見つからないときに呼び出されます。protected HandlerMethod
RequestMappingInfoHandlerMapping.handleNoMatch
(SetSE<RequestMappingInfo> infos, ServerWebExchange exchange) すべての RequestMappingInfos をもう一度繰り返し、少なくとも URL による一致があるかどうかを確認し、それに応じて例外を発生させます。protected HandlerMethod
AbstractHandlerMethodMapping.lookupHandlerMethod
(ServerWebExchange exchange) 現在のリクエストに最適なハンドラーメソッドを検索します。型 HandlerMethod の引数を持つ型を返す org.springframework.web.reactive.result.method のメソッド修飾子と型メソッド説明reactor.core.publisher.Mono<HandlerMethod>
AbstractHandlerMethodMapping.getHandlerInternal
(ServerWebExchange exchange) 指定されたリクエストのハンドラーメソッドを検索します。reactor.core.publisher.Mono<HandlerMethod>
RequestMappingInfoHandlerMapping.getHandlerInternal
(ServerWebExchange exchange) AbstractHandlerMethodMapping.getHandlerMethods()
すべてのマッピングと HandlerMethod を含む(読み取り専用)マップを返します。型 HandlerMethod のパラメーターを持つ org.springframework.web.reactive.result.method のメソッド修飾子と型メソッド説明protected void
AbstractHandlerMethodMapping.handleMatch
(T mapping, HandlerMethod handlerMethod, ServerWebExchange exchange) 一致するマッピングが見つかったときに呼び出されます。protected void
RequestMappingInfoHandlerMapping.handleMatch
(RequestMappingInfo info, HandlerMethod handlerMethod, ServerWebExchange exchange) リクエストで URI テンプレート変数、マトリックス変数、作成可能なメディア型を公開します。型 HandlerMethod の型引数を持つ org.springframework.web.reactive.result.method のメソッドパラメーター修飾子と型メソッド説明protected void
AbstractHandlerMethodMapping.handlerMethodsInitialized
(MapSE<T, HandlerMethod> handlerMethods) すべてのハンドラーメソッドが検出された後に呼び出されます。型 HandlerMethod のパラメーターを持つ org.springframework.web.reactive.result.method のコンストラクター修飾子コンストラクター説明InvocableHandlerMethod
(HandlerMethod handlerMethod) HandlerMethod
からインスタンスを作成します。SyncInvocableHandlerMethod
(HandlerMethod handlerMethod) org.springframework.web.reactive.result.method.annotation 内の HandlerMethod 使用
型 HandlerMethod の型引数を持つ org.springframework.web.reactive.result.method.annotation のメソッドパラメーター修飾子と型メソッド説明void
RequestMappingHandlerAdapter.setBlockingMethodPredicate
(PredicateSE<HandlerMethod> predicate) 構成されたblockingExecutor
を通じてどのコントローラーメソッドを呼び出すかを決定する述語を提供します。org.springframework.web.servlet.handler 内の HandlerMethod 使用
修飾子と型メソッド説明protected HandlerMethod
AbstractHandlerMethodMapping.createHandlerMethod
(ObjectSE handler, MethodSE method) HandlerMethod インスタンスを作成します。protected HandlerMethod
AbstractHandlerMethodMapping.getHandlerInternal
(HttpServletRequestEE request) 指定されたリクエストのハンドラーメソッドを検索します。protected HandlerMethod
AbstractHandlerMethodMapping.handleNoMatch
(SetSE<T> mappings, StringSE lookupPath, HttpServletRequestEE request) 一致するマッピングが見つからないときに呼び出されます。protected HandlerMethod
AbstractHandlerMethodMapping.lookupHandlerMethod
(StringSE lookupPath, HttpServletRequestEE request) 現在のリクエストに最適なハンドラーメソッドを検索します。型 HandlerMethod の引数を持つ型を返す org.springframework.web.servlet.handler のメソッド修飾子と型メソッド説明AbstractHandlerMethodMapping.getHandlerMethods()
すべてのマッピングと HandlerMethod を含む(読み取り専用)マップを返します。AbstractHandlerMethodMapping.getHandlerMethodsForMappingName
(StringSE mappingName) 指定されたマッピング名のハンドラーメソッドを返します。型 HandlerMethod のパラメーターを持つ org.springframework.web.servlet.handler のメソッド修飾子と型メソッド説明protected abstract ModelAndView
AbstractHandlerMethodExceptionResolver.doResolveHandlerMethodException
(HttpServletRequestEE request, HttpServletResponseEE response, HandlerMethod handlerMethod, ExceptionSE ex) on ハンドラーの実行中にスローされた特定の例外を実際に解決し、必要に応じて特定のエラーページを表す ModelAndView を返します。HandlerMethodMappingNamingStrategy.getName
(HandlerMethod handlerMethod, T mapping) 指定された HandlerMethod とマッピングの名前を決定します。型 HandlerMethod の型引数を持つ org.springframework.web.servlet.handler のメソッドパラメーター修飾子と型メソッド説明protected void
AbstractHandlerMethodMapping.handlerMethodsInitialized
(MapSE<T, HandlerMethod> handlerMethods) すべてのハンドラーメソッドが検出された後に呼び出されます。org.springframework.web.servlet.mvc.method 内の HandlerMethod 使用
修飾子と型メソッド説明protected HandlerMethod
RequestMappingInfoHandlerMapping.getHandlerInternal
(HttpServletRequestEE request) protected HandlerMethod
RequestMappingInfoHandlerMapping.handleNoMatch
(SetSE<RequestMappingInfo> infos, StringSE lookupPath, HttpServletRequestEE request) すべての RequestMappingInfo をもう一度繰り返し、少なくとも URL で一致するものがあるかどうかを調べ、一致しないものに応じて例外を発生させます。型 HandlerMethod のパラメーターを持つ org.springframework.web.servlet.mvc.method のメソッド修飾子と型メソッド説明protected abstract long
AbstractHandlerMethodAdapter.getLastModifiedInternal
(HttpServletRequestEE request, HandlerMethod handlerMethod) 使用すべきではありません。RequestMappingInfoHandlerMethodMappingNamingStrategy.getName
(HandlerMethod handlerMethod, RequestMappingInfo mapping) protected abstract ModelAndView
AbstractHandlerMethodAdapter.handleInternal
(HttpServletRequestEE request, HttpServletResponseEE response, HandlerMethod handlerMethod) 指定されたハンドラーメソッドを使用して、リクエストを処理します。protected abstract boolean
AbstractHandlerMethodAdapter.supportsInternal
(HandlerMethod handlerMethod) ハンドラーメソッドを指定して、このアダプターがそれをサポートできるかどうかを返します。org.springframework.web.servlet.mvc.method.annotation 内の HandlerMethod 使用
修飾子と型クラス説明class
登録されたHandlerMethodReturnValueHandler
を介して戻り値を処理する機能でInvocableHandlerMethod
を拡張し、メソッドレベルの@ResponseStatus
アノテーションに基づくレスポンスステータスの設定もサポートします。型 HandlerMethod のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のメソッド修飾子と型メソッド説明protected ServletInvocableHandlerMethod
RequestMappingHandlerAdapter.createInvocableHandlerMethod
(HandlerMethod handlerMethod) 指定されたHandlerMethod
定義からServletInvocableHandlerMethod
を作成します。protected ModelAndView
ExceptionHandlerExceptionResolver.doResolveHandlerMethodException
(HttpServletRequestEE request, HttpServletResponseEE response, HandlerMethod handlerMethod, ExceptionSE exception) @ExceptionHandler
メソッドを見つけて呼び出し、発生した例外を処理します。protected ServletInvocableHandlerMethod
ExceptionHandlerExceptionResolver.getExceptionHandlerMethod
(HandlerMethod handlerMethod, ExceptionSE exception, ServletWebRequest webRequest) 指定された例外の@ExceptionHandler
メソッドを見つけます。protected long
RequestMappingHandlerAdapter.getLastModifiedInternal
(HttpServletRequestEE request, HandlerMethod handlerMethod) この実装は常に -1 を返します。protected ModelAndView
RequestMappingHandlerAdapter.handleInternal
(HttpServletRequestEE request, HttpServletResponseEE response, HandlerMethod handlerMethod) protected ModelAndView
RequestMappingHandlerAdapter.invokeHandlerMethod
(HttpServletRequestEE request, HttpServletResponseEE response, HandlerMethod handlerMethod) ビューリゾルバーが必要な場合は、ModelAndView
を準備するRequestMapping
ハンドラーメソッドを呼び出します。protected boolean
RequestMappingHandlerAdapter.supportsInternal
(HandlerMethod handlerMethod) メソッドの引数と戻り値の型は何らかの方法で処理されるため、常にtrue
を返します。型 HandlerMethod のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のコンストラクター修飾子コンストラクター説明ServletInvocableHandlerMethod
(HandlerMethod handlerMethod) HandlerMethod
からインスタンスを作成します。
LastModified
も同様。