クラスの使用
org.springframework.web.servlet.mvc.condition.ProducesRequestCondition
パッケージ
説明
条件に基づいて受信リクエストを照合するための一般的な MVC ロジック。
org.springframework.web.method
パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.servlet.mvc.condition 内の ProducesRequestCondition 使用
修飾子と型メソッド説明ProducesRequestCondition.combine
(ProducesRequestCondition other) 式がある場合、「その他」のインスタンスを返します。それ以外の場合は "this" インスタンスを返します。ProducesRequestCondition.getMatchingCondition
(HttpServletRequestEE request) 含まれているメディア型式のいずれかが指定されたリクエストの "Content-Type" ヘッダーと一致するかどうかを確認し、一致する式のみが含まれていることが保証されているインスタンスを返します。修飾子と型メソッド説明ProducesRequestCondition.combine
(ProducesRequestCondition other) 式がある場合、「その他」のインスタンスを返します。それ以外の場合は "this" インスタンスを返します。int
ProducesRequestCondition.compareTo
(ProducesRequestCondition other, HttpServletRequestEE request) これと別の「生成」条件を次のように比較します。MimeTypeUtils.sortBySpecificity(List)
を介して品質値で "Accept" ヘッダーメディア型をソートし、リストを反復します。org.springframework.web.servlet.mvc.method 内の ProducesRequestCondition 使用
修飾子と型メソッド説明RequestMappingInfo.getProducesCondition()
この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
を使用することをお勧めします。