クラスの使用
org.springframework.web.servlet.mvc.condition.ConsumesRequestCondition
ConsumesRequestCondition を使用するパッケージ
パッケージ
説明
条件に基づいて受信リクエストを照合するための一般的な MVC ロジック。
org.springframework.web.method パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.servlet.mvc.condition 内の ConsumesRequestCondition 使用
修飾子と型クラス説明final classリクエストの 'Content-Type' ヘッダーをメディア型式のリストに一致させるための論理和('| |')リクエスト条件。修飾子と型メソッド説明ConsumesRequestCondition.combine(ConsumesRequestCondition other) 式がある場合、「その他」のインスタンスを返します。それ以外の場合は "this" インスタンスを返します。ConsumesRequestCondition.getMatchingCondition(jakarta.servlet.http.HttpServletRequest request) 含まれているメディア型式のいずれかが指定されたリクエストの "Content-Type" ヘッダーと一致するかどうかを確認し、一致する式のみが含まれていることが保証されているインスタンスを返します。型 ConsumesRequestCondition のパラメーターを持つ org.springframework.web.servlet.mvc.condition のメソッド修飾子と型メソッド説明ConsumesRequestCondition.combine(ConsumesRequestCondition other) 式がある場合、「その他」のインスタンスを返します。それ以外の場合は "this" インスタンスを返します。intConsumesRequestCondition.compareTo(ConsumesRequestCondition other, jakarta.servlet.http.HttpServletRequest request) 戻り値: 2 つの条件が同じ数の式 Less を持つ場合、0 は 0 よりも大きい "this" がより具体的なメディア型式を持つ場合「その他」がより具体的なメディア型式を持つ場合、0 より大きいorg.springframework.web.servlet.mvc.method 内の ConsumesRequestCondition 使用
修飾子と型メソッド説明RequestMappingInfo.getConsumesCondition()このRequestMappingInfoの「消費」状態を返します。または、0 のインスタンスは式を使用します(非null)。型 ConsumesRequestCondition のパラメーターを持つ 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を使用することを推奨します。