クラスの使用
org.springframework.web.servlet.mvc.condition.RequestMethodsRequestCondition
RequestMethodsRequestCondition を使用するパッケージ
パッケージ
説明
条件に基づいて受信リクエストを照合するための一般的な MVC ロジック。
org.springframework.web.method パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.servlet.mvc.condition 内の RequestMethodsRequestCondition 使用
修飾子と型メソッド説明RequestMethodsRequestCondition.combine(RequestMethodsRequestCondition other) "this" からの HTTP リクエストメソッドと「その他の」インスタンスの和集合を持つ新しいインスタンスを返します。RequestMethodsRequestCondition.getMatchingCondition(jakarta.servlet.http.HttpServletRequest request) HTTP リクエストメソッドのいずれかが指定されたリクエストと一致するかどうかを確認し、一致する HTTP リクエストメソッドのみを含むインスタンスを返します。型 RequestMethodsRequestCondition のパラメーターを持つ org.springframework.web.servlet.mvc.condition のメソッド修飾子と型メソッド説明RequestMethodsRequestCondition.combine(RequestMethodsRequestCondition other) "this" からの HTTP リクエストメソッドと「その他の」インスタンスの和集合を持つ新しいインスタンスを返します。intRequestMethodsRequestCondition.compareTo(RequestMethodsRequestCondition other, jakarta.servlet.http.HttpServletRequest request) 戻り値: 2 つの条件に含まれる HTTP リクエストメソッドの数 Less が 0 よりも多い場合は 0。"this" インスタンスに HTTP リクエストメソッドがあるが「その他」が 0 より大きい場合「その他」は HTTP リクエストメソッドを持つが "this" はないorg.springframework.web.servlet.mvc.method 内の RequestMethodsRequestCondition 使用
修飾子と型メソッド説明RequestMappingInfo.getMethodsCondition()このRequestMappingInfoの HTTP リクエストメソッドを返します。または、リクエストメソッドが 0 のインスタンス(nullを使用しない)。型 RequestMethodsRequestCondition のパラメーターを持つ org.springframework.web.servlet.mvc.method のコンストラクター修飾子コンストラクター説明RequestMappingInfo(@Nullable StringSE name, @Nullable PatternsRequestCondition patterns, @Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params, @Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes, @Nullable ProducesRequestCondition produces, @Nullable VersionRequestCondition version, @Nullable RequestCondition<?> custom) 使用すべきではありません。RequestMappingInfo(@Nullable PatternsRequestCondition patterns, @Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params, @Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes, @Nullable ProducesRequestCondition produces, @Nullable VersionRequestCondition version, @Nullable RequestCondition<?> custom) 使用すべきではありません。RequestMappingInfo.paths(String...)経由でRequestMappingInfo.Builderを使用することを推奨します。
RequestMappingInfo.paths(String...)経由でRequestMappingInfo.Builderを使用することを推奨します。