クラスの使用
org.springframework.web.servlet.mvc.condition.HeadersRequestCondition
パッケージ
説明
条件に基づいて受信リクエストを照合するための一般的な MVC ロジック。
org.springframework.web.method
パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.servlet.mvc.condition 内の HeadersRequestCondition 使用
修飾子と型メソッド説明HeadersRequestCondition.combine
(HeadersRequestCondition other) "this" のヘッダー式と「その他の」インスタンスの和集合を持つ新しいインスタンスを返します。HeadersRequestCondition.getMatchingCondition
(HttpServletRequestEE request) リクエストがすべての式に一致する場合、"this" インスタンスを返します。それ以外の場合はnull
。修飾子と型メソッド説明HeadersRequestCondition.combine
(HeadersRequestCondition other) "this" のヘッダー式と「その他の」インスタンスの和集合を持つ新しいインスタンスを返します。int
HeadersRequestCondition.compareTo
(HeadersRequestCondition other, HttpServletRequestEE request) ヘッダー式に基づく別の条件と比較します。org.springframework.web.servlet.mvc.method 内の HeadersRequestCondition 使用
修飾子と型メソッド説明RequestMappingInfo.getHeadersCondition()
この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 の時点で、RequestMappingInfo.paths(String...)
を介してRequestMappingInfo.Builder
を使用することをお勧めします。
RequestMappingInfo.paths(String...)
を介してRequestMappingInfo.Builder
を使用することをお勧めします。