クラス HttpRequestValues
java.lang.ObjectSE
org.springframework.web.service.invoker.HttpRequestValues
- 既知の直属サブクラス
ReactiveHttpRequestValues
@HttpExchange アノテーション付きメソッドから抽出された HTTP リクエスト値とそれに渡される引数値のコンテナー。これは、基になる HTTP クライアントに適応するために HttpExchangeAdapter に渡されます。- 導入:
- 6.0
- 作成者:
- Rossen Stoyanchev, Olga Maciaszek-Sharma
ネストされたクラスの要約
ネストされたクラスコンストラクターの概要
コンストラクター修飾子コンストラクター説明protectedHttpRequestValues(HttpMethod httpMethod, URISE uri, StringSE uriTemplate, MapSE<StringSE, StringSE> uriVariables, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, MapSE<StringSE, ObjectSE> attributes, ObjectSE bodyValue) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。protectedHttpRequestValues(HttpMethod httpMethod, URISE uri, UriBuilderFactory uriBuilderFactory, StringSE uriTemplate, MapSE<StringSE, StringSE> uriVariables, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, MapSE<StringSE, ObjectSE> attributes, ObjectSE bodyValue) HttpRequestValuesを構築します。メソッドのサマリー
修飾子と型メソッド説明static HttpRequestValues.Builderbuilder()リクエストに関連付けられた属性、または空のマップを返します。Publisher<?>getBody()非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。ReactiveHttpRequestValues.getBodyPublisher()を推奨します。6.2 で削除予定非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。ReactiveHttpRequestValues.getBodyPublisherElementType()を推奨します。6.2 で削除予定設定されている場合、直列化される値としてリクエスト本文を返します。リクエストの Cookie、または空のマップを返します。リクエストのヘッダーがあれば、それを返します。リクエストに使用する HTTP メソッドを返します。getUri()使用する URL を返します。リクエストの URL テンプレートを返します。URL テンプレート変数、または空のマップを返します。
コンストラクターの詳細
HttpRequestValues
@DeprecatedSE(since="6.1", forRemoval=true) protected HttpRequestValues(@Nullable HttpMethod httpMethod, @Nullable URISE uri, @Nullable StringSE uriTemplate, MapSE<StringSE, StringSE> uriVariables, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, MapSE<StringSE, ObjectSE> attributes, @Nullable ObjectSE bodyValue) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。UriBuilderFactory なしのコンストラクター。HttpRequestValues
protected HttpRequestValues(@Nullable HttpMethod httpMethod, @Nullable URISE uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable StringSE uriTemplate, MapSE<StringSE, StringSE> uriVariables, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, MapSE<StringSE, ObjectSE> attributes, @Nullable ObjectSE bodyValue) HttpRequestValuesを構築します。- 導入:
- 6.1
メソッドの詳細
getHttpMethod
リクエストに使用する HTTP メソッドを返します。getUri
使用する URL を返します。通常、これは
URISE メソッドの引数から取得され、呼び出し元にクラスおよびメソッドのHttpExchangeアノテーションからuriTemplateをオーバーライドするオプションを提供します。getUriBuilderFactory
uriTemplateおよびgetUriVariables()を拡張するためにUriBuilderFactoryを返します。UriBuilderFactoryは、基盤となるクライアントによって使用される UriBuilderFactory (およびその baseUrl) をオーバーライドするために、HTTP インターフェースメソッドに渡されます。- 導入:
- 6.1
getUriTemplate
リクエストの URL テンプレートを返します。これは、クラスおよびメソッドのHttpExchangeアノテーションの値に由来します。getUriVariables
URL テンプレート変数、または空のマップを返します。getHeaders
リクエストのヘッダーがあれば、それを返します。getCookies
リクエストの Cookie、または空のマップを返します。getAttributes
リクエストに関連付けられた属性、または空のマップを返します。getBodyValue
設定されている場合、直列化される値としてリクエスト本文を返します。getBody
非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。ReactiveHttpRequestValues.getBodyPublisher()を推奨します。6.2 で削除予定リクエスト本文をパブリッシャーとして返します。これは
getBodyValue()と相互に排他的です。2 つのうちの 1 つだけが設定されているか、どちらも設定されていません。getBodyElementType
@DeprecatedSE(since="6.1", forRemoval=true) @Nullable public ParameterizedTypeReference<?> getBodyElementType()非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。ReactiveHttpRequestValues.getBodyPublisherElementType()を推奨します。6.2 で削除予定パブリッシャー本体の要素型を返します。builder
HttpRequestValues(HttpMethod, URI, UriBuilderFactory, String, Map, HttpHeaders, MultiValueMap, Map, Object)を削除することを支持します。