クラスの使用
org.springframework.web.servlet.mvc.condition.HeadersRequestCondition
HeadersRequestCondition を使用するパッケージ
パッケージ
説明
条件に基づいて受信リクエストを照合するための一般的な MVC ロジック。
org.springframework.web.method パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.servlet.mvc.condition 内の HeadersRequestCondition 使用
修飾子と型クラス説明final classRequestMapping.headers()で定義された構文を持つヘッダー式のセットに対してリクエストを照合する論理論理積(' && ')リクエスト条件。修飾子と型メソッド説明HeadersRequestCondition.combine(HeadersRequestCondition other) "this" のヘッダー式と「その他の」インスタンスの和集合を持つ新しいインスタンスを返します。HeadersRequestCondition.getMatchingCondition(jakarta.servlet.http.HttpServletRequest request) リクエストがすべての式に一致する場合、"this" インスタンスを返します。それ以外の場合はnull。型 HeadersRequestCondition のパラメーターを持つ org.springframework.web.servlet.mvc.condition のメソッド修飾子と型メソッド説明HeadersRequestCondition.combine(HeadersRequestCondition other) "this" のヘッダー式と「その他の」インスタンスの和集合を持つ新しいインスタンスを返します。intHeadersRequestCondition.compareTo(HeadersRequestCondition other, jakarta.servlet.http.HttpServletRequest request) ヘッダー式に基づく別の条件と比較します。org.springframework.web.servlet.mvc.method 内の HeadersRequestCondition 使用
修飾子と型メソッド説明RequestMappingInfo.getHeadersCondition()このRequestMappingInfoの「ヘッダー」条件を返します。または、ヘッダー式が 0 のインスタンス(nullは使用しないでください)。型 HeadersRequestCondition のパラメーターを持つ 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を使用することを推奨します。