public final class RequestMappingInfo extends ObjectSE implements RequestCondition<RequestMappingInfo>
修飾子と型 | クラスと説明 |
---|---|
static interface | RequestMappingInfo.Builder RequestMappingInfo を作成するためのビルダーを定義します。 |
static class | RequestMappingInfo.BuilderConfiguration リクエストマッピングの目的で使用される構成オプションのコンテナー。 |
コンストラクターと説明 |
---|
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 を使用することに賛成しています。 |
RequestMappingInfo(StringSE name, PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom) 使用すべきではありません。 5.3.4 の時点で、 paths(String...) を介して RequestMappingInfo.Builder を使用することをお勧めします。 |
修飾子と型 | メソッドと説明 |
---|---|
RequestMappingInfo | combine(RequestMappingInfo other) "this" リクエストマッピング情報を組み合わせます(つまり |
int | compareTo(RequestMappingInfo other, ServerWebExchange exchange) "this" 情報を比較します(つまり |
boolean | equals(ObjectSE other) |
ConsumesRequestCondition | getConsumesCondition() この RequestMappingInfo の「消費」状態を返します。または 0 のインスタンスは式を消費し、決して null を消費しません。 |
RequestCondition<?> | getCustomCondition() この RequestMappingInfo の「カスタム」条件を返します。または null 。 |
SetSE<StringSE> | getDirectPaths() パターンではないマッピングパスを返します。 |
HeadersRequestCondition | getHeadersCondition() この RequestMappingInfo の「ヘッダー」条件を返します。または、ヘッダー式が 0 のインスタンス、決して null ではありません。 |
RequestMappingInfo | getMatchingCondition(ServerWebExchange exchange) このリクエストマッピング情報のすべての条件が提供されたリクエストと一致するかどうかを確認し、現在のリクエストに合わせた条件で潜在的に新しいリクエストマッピング情報を返します。 |
RequestMethodsRequestCondition | getMethodsCondition() この RequestMappingInfo の HTTP リクエストメソッドを返します。または、リクエストメソッドが 0 のインスタンス、決して null 。 |
StringSE | getName() このマッピングの名前、または null を返します。 |
ParamsRequestCondition | getParamsCondition() この RequestMappingInfo の「パラメーター」条件を返します。または、パラメーター式が 0 のインスタンスで、決して null ではありません。 |
PatternsRequestCondition | getPatternsCondition() この RequestMappingInfo の URL パターンを返します。または 0 パターンのインスタンス、決して null 。 |
ProducesRequestCondition | getProducesCondition() この RequestMappingInfo の「プロデュース」状態を返します。または、0 のインスタンスは式を生成し、決して null を生成しません。 |
int | hashCode() |
RequestMappingInfo.Builder | mutate() ビルダーを返して、これを変更して新しい RequestMappingInfo を作成します。 |
static RequestMappingInfo.Builder | paths(StringSE... paths) 指定されたパスで新しい RequestMappingInfo.Builder を作成します。 |
StringSE | toString() |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
@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)
paths(String...)
を介して RequestMappingInfo.Builder
を使用することを推奨しています。@DeprecatedSE public RequestMappingInfo(@Nullable PatternsRequestCondition patterns, @Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params, @Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes, @Nullable ProducesRequestCondition produces, @Nullable RequestCondition<?> custom)
paths(String...)
を介して RequestMappingInfo.Builder
を使用することを推奨しています。@DeprecatedSE public RequestMappingInfo(RequestMappingInfo info, @Nullable RequestCondition<?> customRequestCondition)
mutate()
を介して RequestMappingInfo.Builder
を使用することに賛成しています。public PatternsRequestCondition getPatternsCondition()
RequestMappingInfo
の URL パターンを返します。または 0 パターンのインスタンス、決して null
。public RequestMethodsRequestCondition getMethodsCondition()
RequestMappingInfo
の HTTP リクエストメソッドを返します。または、リクエストメソッドが 0 のインスタンス、決して null
。public ParamsRequestCondition getParamsCondition()
RequestMappingInfo
の「パラメーター」条件を返します。または、パラメーター式が 0 のインスタンスで、決して null
ではありません。public HeadersRequestCondition getHeadersCondition()
RequestMappingInfo
の「ヘッダー」条件を返します。または、ヘッダー式が 0 のインスタンス、決して null
ではありません。public ConsumesRequestCondition getConsumesCondition()
RequestMappingInfo
の「消費」状態を返します。または 0 のインスタンスは式を消費し、決して null
を消費しません。public ProducesRequestCondition getProducesCondition()
RequestMappingInfo
の「プロデュース」状態を返します。または、0 のインスタンスは式を生成し、決して null
を生成しません。@Nullable public RequestCondition<?> getCustomCondition()
RequestMappingInfo
の「カスタム」条件を返します。または null
。public RequestMappingInfo combine(RequestMappingInfo other)
サンプル: 型レベルとメソッドレベルのリクエストマッピングを組み合わせます。
RequestCondition<RequestMappingInfo>
の combine
other
- 組み合わせる条件。null
@Nullable public RequestMappingInfo getMatchingCondition(ServerWebExchange exchange)
たとえば、返されたインスタンスには、現在のリクエストに一致する URL パターンのサブセットが含まれ、最上位に一致するパターンでソートされます。
RequestCondition<RequestMappingInfo>
の getMatchingCondition
null
public int compareTo(RequestMappingInfo other, ServerWebExchange exchange)
メモ: 両方のインスタンスが getMatchingCondition(ServerWebExchange)
を介して取得されており、現在のリクエストに関連するコンテンツの条件を備えていると想定されています。
RequestCondition<RequestMappingInfo>
の compareTo
public int hashCode()
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE
public RequestMappingInfo.Builder mutate()
public static RequestMappingInfo.Builder paths(StringSE... paths)
RequestMappingInfo.Builder
を作成します。paths
- 使用するパス