クラスの使用
org.springframework.web.servlet.mvc.condition.RequestMethodsRequestCondition
パッケージ
説明
条件に基づいて受信リクエストを照合するための一般的な MVC ロジック。
org.springframework.web.method
パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.servlet.mvc.condition 内の RequestMethodsRequestCondition 使用
修飾子と型メソッド説明RequestMethodsRequestCondition.combine
(RequestMethodsRequestCondition other) "this" からの HTTP リクエストメソッドと「その他の」インスタンスの和集合を持つ新しいインスタンスを返します。RequestMethodsRequestCondition.getMatchingCondition
(HttpServletRequestEE request) HTTP リクエストメソッドのいずれかが指定されたリクエストと一致するかどうかを確認し、一致する HTTP リクエストメソッドのみを含むインスタンスを返します。修飾子と型メソッド説明RequestMethodsRequestCondition.combine
(RequestMethodsRequestCondition other) "this" からの HTTP リクエストメソッドと「その他の」インスタンスの和集合を持つ新しいインスタンスを返します。int
RequestMethodsRequestCondition.compareTo
(RequestMethodsRequestCondition other, HttpServletRequestEE request) 戻り値: 2 つの条件に含まれる HTTP リクエストメソッドの数 Less が 0 よりも多い場合は 0。"this" インスタンスに HTTP リクエストメソッドがあるが「その他」が 0 より大きい場合「その他」は HTTP リクエストメソッドを持つが "this" はないorg.springframework.web.servlet.mvc.method 内の RequestMethodsRequestCondition 使用
修飾子と型メソッド説明RequestMappingInfo.getMethodsCondition()
このRequestMappingInfo
の HTTP リクエストメソッドを返します。または、リクエストメソッドが 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
を使用することをお勧めします。