クラスの使用
org.springframework.web.servlet.mvc.method.RequestMappingInfo
RequestMappingInfo を使用するパッケージ
パッケージ
説明
org.springframework.web.method
パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.method.annotation
パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。org.springframework.web.servlet.mvc.method 内の RequestMappingInfo 使用
修飾子と型メソッド説明RequestMappingInfo.addCustomCondition
(RequestCondition<?> customCondition) 現在のインスタンスに基づいて新しいインスタンスを作成し、指定されたカスタム条件も追加します。RequestMappingInfo.Builder.build()
RequestMappingInfo をビルドします。RequestMappingInfo.combine
(RequestMappingInfo other) "this" リクエストマッピング情報を組み合わせます(つまりRequestMappingInfo.getMatchingCondition
(HttpServletRequestEE request) このリクエストマッピング情報のすべての条件が提供されたリクエストと一致するかどうかを確認し、現在のリクエストに合わせた条件で潜在的に新しいリクエストマッピング情報を返します。protected RequestMappingInfo
RequestMappingInfoHandlerMapping.getMatchingMapping
(RequestMappingInfo info, HttpServletRequestEE request) 指定された RequestMappingInfo が現在のリクエストに一致するかどうかを確認し、現在のリクエストに一致する条件(たとえば、URL パターンのサブセット)で(潜在的に新しい)インスタンスを返します。型 RequestMappingInfo の引数を持つ型を返す org.springframework.web.servlet.mvc.method のメソッド修飾子と型メソッド説明protected ComparatorSE<RequestMappingInfo>
RequestMappingInfoHandlerMapping.getMappingComparator
(HttpServletRequestEE request) リクエストに一致する RequestMappingInfos をソートするためのコンパレータを提供します。型 RequestMappingInfo のパラメーターを持つ org.springframework.web.servlet.mvc.method のメソッド修飾子と型メソッド説明RequestMappingInfo.combine
(RequestMappingInfo other) "this" リクエストマッピング情報を組み合わせます(つまりint
RequestMappingInfo.compareTo
(RequestMappingInfo other, HttpServletRequestEE request) "this" 情報を比較します(つまりRequestMappingInfoHandlerMapping.getDirectPaths
(RequestMappingInfo info) RequestMappingInfoHandlerMapping.getMappingPathPatterns
(RequestMappingInfo info) 指定されたRequestMappingInfo
に関連付けられた URL パスパターンを取得します。protected RequestMappingInfo
RequestMappingInfoHandlerMapping.getMatchingMapping
(RequestMappingInfo info, HttpServletRequestEE request) 指定された RequestMappingInfo が現在のリクエストに一致するかどうかを確認し、現在のリクエストに一致する条件(たとえば、URL パターンのサブセット)で(潜在的に新しい)インスタンスを返します。RequestMappingInfoHandlerMethodMappingNamingStrategy.getName
(HandlerMethod handlerMethod, RequestMappingInfo mapping) protected void
RequestMappingInfoHandlerMapping.handleMatch
(RequestMappingInfo info, StringSE lookupPath, HttpServletRequestEE request) リクエストで URI テンプレート変数、マトリックス変数、作成可能なメディア型を公開します。型 RequestMappingInfo の型引数を持つ org.springframework.web.servlet.mvc.method のメソッドパラメーター修飾子と型メソッド説明protected HandlerMethod
RequestMappingInfoHandlerMapping.handleNoMatch
(SetSE<RequestMappingInfo> infos, StringSE lookupPath, HttpServletRequestEE request) すべての RequestMappingInfo をもう一度繰り返し、少なくとも URL で一致するものがあるかどうかを調べ、一致しないものに応じて例外を発生させます。型 RequestMappingInfo のパラメーターを持つ org.springframework.web.servlet.mvc.method のコンストラクター修飾子コンストラクター説明RequestMappingInfo
(RequestMappingInfo info, RequestCondition<?> customRequestCondition) 使用すべきではありません。org.springframework.web.servlet.mvc.method.annotation 内の RequestMappingInfo 使用
修飾子と型メソッド説明protected RequestMappingInfo
RequestMappingHandlerMapping.createRequestMappingInfo
(RequestMapping requestMapping, RequestCondition<?> customCondition) 提供された@RequestMapping
アノテーションからRequestMappingInfo
を作成します。これは、直接宣言されたアノテーション、メタアノテーション、アノテーション階層内のアノテーション属性をマージした合成結果のいずれかです。protected RequestMappingInfo
RequestMappingHandlerMapping.getMappingForMethod
(MethodSE method, ClassSE<?> handlerType) メソッドおよび型レベルの @RequestMapping
アノテーションを使用して RequestMappingInfo を作成します。型 RequestMappingInfo のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のメソッド修飾子と型メソッド説明protected CorsConfiguration
RequestMappingHandlerMapping.initCorsConfiguration
(ObjectSE handler, MethodSE method, RequestMappingInfo mappingInfo) protected void
RequestMappingHandlerMapping.registerHandlerMethod
(ObjectSE handler, MethodSE method, RequestMappingInfo mapping) ハンドラーメソッドとその一意のマッピングを登録します。void
RequestMappingHandlerMapping.registerMapping
(RequestMappingInfo mapping, ObjectSE handler, MethodSE method)
addCustomCondition(RequestCondition)
の使用を推奨する 5.3 以降。