クラスの使用
org.springframework.web.reactive.result.condition.ConsumesRequestCondition
org.springframework.web.reactive.result.condition 内の ConsumesRequestCondition 使用
修飾子と型メソッド説明ConsumesRequestCondition.combine
(ConsumesRequestCondition other) 式がある場合、「その他」のインスタンスを返します。それ以外の場合は "this" インスタンスを返します。ConsumesRequestCondition.getMatchingCondition
(ServerWebExchange exchange) 含まれているメディア型式のいずれかが指定されたリクエストの "Content-Type" ヘッダーと一致するかどうかを確認し、一致する式のみが含まれていることが保証されているインスタンスを返します。修飾子と型メソッド説明ConsumesRequestCondition.combine
(ConsumesRequestCondition other) 式がある場合、「その他」のインスタンスを返します。それ以外の場合は "this" インスタンスを返します。int
ConsumesRequestCondition.compareTo
(ConsumesRequestCondition other, ServerWebExchange exchange) 戻り値: 2 つの条件が同じ数の式 Less を持つ場合、0 は 0 よりも大きい "this" がより具体的なメディア型式を持つ場合「その他」がより具体的なメディア型式を持つ場合、0 より大きいorg.springframework.web.reactive.result.method 内の ConsumesRequestCondition 使用
修飾子と型メソッド説明RequestMappingInfo.getConsumesCondition()
このRequestMappingInfo
の「消費」状態を返します。または 0 のインスタンスは式を消費し、決してnull
を消費しません。修飾子コンストラクター説明RequestMappingInfo
(StringSE name, PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom) 使用すべきではありません。RequestMappingInfo
(PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom) 使用すべきではありません。5.3.4 の時点で、RequestMappingInfo.paths(String...)
を介してRequestMappingInfo.Builder
を使用することをお勧めします。
RequestMappingInfo.paths(String...)
を介してRequestMappingInfo.Builder
を使用することをお勧めします。