public final class RequestMappingInfo extends ObjectSE implements RequestCondition<RequestMappingInfo>
PathPatterns を使用した PathPatternsRequestCondition または PathMatcher を介したストリングパターンを使用した PatternsRequestCondition RequestMethodsRequestConditionParamsRequestConditionHeadersRequestConditionConsumesRequestConditionProducesRequestConditionRequestCondition (オプションのカスタムリクエスト条件)| 修飾子と型 | クラスと説明 |
|---|---|
static interface | RequestMappingInfo.BuilderRequestMappingInfo を作成するためのビルダーを定義します。 |
static class | RequestMappingInfo.BuilderConfiguration リクエストマッピングの目的で使用される構成オプションのコンテナー。 |
| コンストラクターと説明 |
|---|
RequestMappingInfo(PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom) 使用すべきではありません。 5.3 の時点で、 paths(String...) を介して RequestMappingInfo.Builder を使用することをお勧めします。 |
RequestMappingInfo(RequestMappingInfo info, RequestCondition<?> customRequestCondition) 使用すべきではありません。 addCustomCondition(RequestCondition) の使用を推奨する 5.3 以降。 |
RequestMappingInfo(StringSE name, PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom) 使用すべきではありません。 5.3 の時点で、 paths(String...) を介して RequestMappingInfo.Builder を使用することをお勧めします。 |
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)
addCustomCondition(RequestCondition) を使用してください。@Nullable public PathPatternsRequestCondition getPathPatternsCondition()
enabled の場合、使用中のパターン条件を返します。 これは getPatternsCondition() と相互に排他的であるため、一方が null を返すと、もう一方はインスタンスを返します。
getActivePatternsCondition()@Nullable public PatternsRequestCondition getPatternsCondition()
PathMatcher を介した文字列パターンマッチングが使用されている場合、パターン条件を返します。 これは getPathPatternsCondition() と相互に排他的であるため、一方が null を返すと、もう一方はインスタンスを返します。
public <T> RequestCondition<T> getActivePatternsCondition()
getPathPatternsCondition() または getPatternsCondition() のいずれかを返します。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 addCustomCondition(RequestCondition<?> customCondition)
customCondition - 追加するカスタム条件 public RequestMappingInfo combine(RequestMappingInfo other)
サンプル: 型レベルとメソッドレベルのリクエストマッピングを組み合わせます。
RequestCondition<RequestMappingInfo> の combine other - 組み合わせる条件。null@Nullable public RequestMappingInfo getMatchingCondition(HttpServletRequestEE request)
たとえば、返されたインスタンスには、現在のリクエストに一致する URL パターンのサブセットが含まれ、最上位に一致するパターンでソートされます。
RequestCondition<RequestMappingInfo> の getMatchingCondition null それ以外の場合 public int compareTo(RequestMappingInfo other, HttpServletRequestEE request)
メモ: 両方のインスタンスが getMatchingCondition(HttpServletRequest) を介して取得されており、現在のリクエストに関連するコンテンツの条件を備えていると想定されています。
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 - 使用するパス