クラス RequestMappingInfo
java.lang.ObjectSE
org.springframework.web.reactive.result.method.RequestMappingInfo
- 実装されているすべてのインターフェース:
RequestCondition<RequestMappingInfo>
public final class RequestMappingInfo
extends ObjectSE
implements RequestCondition<RequestMappingInfo>
マッピング情報をリクエストします。次のリクエストマッピング条件をカプセル化します。
- 導入:
- 5.0
- 作成者:
- Rossen Stoyanchev
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明static interfaceRequestMappingInfo を作成するためのビルダーを定義します。static classリクエストマッピングの目的で使用される構成オプションのコンテナー。コンストラクターの概要
コンストラクターコンストラクター説明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 の時点で、paths(String...)を介してRequestMappingInfo.Builderを使用することをお勧めします。RequestMappingInfo(RequestMappingInfo info, RequestCondition<?> customRequestCondition) 使用すべきではありません。5.3.4 以降、mutate()を介してRequestMappingInfo.Builderを使用することに賛成しています。メソッドのサマリー
修飾子と型メソッド説明combine(RequestMappingInfo other) "this" リクエストマッピング情報を組み合わせます(つまりintcompareTo(RequestMappingInfo other, ServerWebExchange exchange) "this" 情報を比較します(つまりbooleanこのRequestMappingInfoの「消費」状態を返します。または 0 のインスタンスは式を消費し、決してnullを消費しません。このRequestMappingInfoの「カスタム」条件を返します。またはnull。パターンではないマッピングパスを返します。このRequestMappingInfoの「ヘッダー」条件を返します。または、ヘッダー式が 0 のインスタンス、決してnullではありません。getMatchingCondition(ServerWebExchange exchange) このリクエストマッピング情報のすべての条件が提供されたリクエストと一致するかどうかを確認し、現在のリクエストに合わせた条件で潜在的に新しいリクエストマッピング情報を返します。このRequestMappingInfoの HTTP リクエストメソッドを返します。または、リクエストメソッドが 0 のインスタンス、決してnull。getName()このマッピングの名前、またはnullを返します。このRequestMappingInfoの「パラメーター」条件を返します。または、パラメーター式が 0 のインスタンスで、決してnullではありません。このRequestMappingInfoの URL パターンを返します。または 0 パターンのインスタンス、決してnull。このRequestMappingInfoの「プロデュース」状態を返します。または、0 のインスタンスは式を生成し、決してnullを生成しません。inthashCode()mutate()ビルダーを返して、これを変更して新しい RequestMappingInfo を作成します。static RequestMappingInfo.Builder指定されたパスで新しいRequestMappingInfo.Builderを作成します。toString()
コンストラクターの詳細
RequestMappingInfo
@DeprecatedSE public RequestMappingInfo(@Nullable StringSE name, @Nullable PatternsRequestCondition patterns, @Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params, @Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes, @Nullable ProducesRequestCondition produces, @Nullable RequestCondition<?> custom) 使用すべきではありません。5.3.4 の時点で、paths(String...)を介してRequestMappingInfo.Builderを使用することをお勧めします。マッピング名を持つ完全なコンストラクター。RequestMappingInfo
@DeprecatedSE public RequestMappingInfo(@Nullable PatternsRequestCondition patterns, @Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params, @Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes, @Nullable ProducesRequestCondition produces, @Nullable RequestCondition<?> custom) 使用すべきではありません。5.3.4 の時点で、paths(String...)を介してRequestMappingInfo.Builderを使用することをお勧めします。指定された条件でインスタンスを作成します。RequestMappingInfo
@DeprecatedSE public RequestMappingInfo(RequestMappingInfo info, @Nullable RequestCondition<?> customRequestCondition) 使用すべきではありません。5.3.4 以降、mutate()を介してRequestMappingInfo.Builderを使用することに賛成しています。指定されたカスタムリクエスト条件で RequestMappingInfo を再作成します。
メソッドの詳細
getName
このマッピングの名前、またはnullを返します。getPatternsCondition
このRequestMappingInfoの URL パターンを返します。または 0 パターンのインスタンス、決してnull。getDirectPaths
パターンではないマッピングパスを返します。- 導入:
- 5.3
getMethodsCondition
このRequestMappingInfoの HTTP リクエストメソッドを返します。または、リクエストメソッドが 0 のインスタンス、決してnull。getParamsCondition
このRequestMappingInfoの「パラメーター」条件を返します。または、パラメーター式が 0 のインスタンスで、決してnullではありません。getHeadersCondition
このRequestMappingInfoの「ヘッダー」条件を返します。または、ヘッダー式が 0 のインスタンス、決してnullではありません。getConsumesCondition
このRequestMappingInfoの「消費」状態を返します。または 0 のインスタンスは式を消費し、決してnullを消費しません。getProducesCondition
このRequestMappingInfoの「プロデュース」状態を返します。または、0 のインスタンスは式を生成し、決してnullを生成しません。getCustomCondition
このRequestMappingInfoの「カスタム」条件を返します。またはnull。combine
"this" リクエストマッピング情報(つまり、現在のインスタンス)を別のリクエストマッピング情報インスタンスと結合します。サンプル: 型レベルとメソッドレベルのリクエストマッピングを組み合わせます。
- 次で指定:
- インターフェース
RequestCondition<RequestMappingInfo>のcombine - パラメーター:
other- 組み合わせる条件。- 戻り値:
- 新しいリクエストマッピング情報インスタンス。非
null
getMatchingCondition
このリクエストマッピング情報のすべての条件が提供されたリクエストと一致するかどうかを確認し、現在のリクエストに合わせた条件で潜在的に新しいリクエストマッピング情報を返します。たとえば、返されたインスタンスには、現在のリクエストに一致する URL パターンのサブセットが含まれ、最上位に一致するパターンでソートされます。
- 次で指定:
- インターフェース
RequestCondition<RequestMappingInfo>のgetMatchingCondition - 戻り値:
- すべての条件が一致する場合の新しいインスタンス。または
null
compareTo
"this" 情報(つまり、現在のインスタンス)をリクエストのコンテキスト内の別の情報と比較します。メモ: 両方のインスタンスが
getMatchingCondition(ServerWebExchange)を介して取得されており、現在のリクエストに関連するコンテンツの条件を備えていると想定されています。- 次で指定:
- インターフェース
RequestCondition<RequestMappingInfo>のcompareTo
equals
hashCode
public int hashCode()toString
mutate
ビルダーを返して、これを変更して新しい RequestMappingInfo を作成します。- 戻り値:
- 新しい変更されたインスタンスを作成するビルダー
- 導入:
- 5.3.4
paths
指定されたパスで新しいRequestMappingInfo.Builderを作成します。- パラメーター:
paths- 使用するパス
paths(String...)を介してRequestMappingInfo.Builderを使用することをお勧めします。