インターフェースの使用
org.springframework.web.client.RestClient.RequestBodySpec
RestClient.RequestBodySpec を使用するパッケージ
パッケージ
説明
クライアント側の Web サポートのコアパッケージ。
org.springframework.web.client パッケージをサポートするクラス。org.springframework.web.client 内の RestClient.RequestBodySpec 使用
org.springframework.web.client 内の RestClient.RequestBodySpec サブインターフェースorg.springframework.web.client 内の RestClient.RequestBodySpec 型の型引数を持つサブインターフェース修飾子と型インターフェース説明static interface交換に至るまでのリクエストヘッダーと本文を指定するための契約。static interfaceリクエストのリクエストヘッダー、本文、URI を指定するための契約。修飾子と型メソッド説明RestClient.RequestBodySpec.body(ObjectSE body) リクエストの本文を指定されたObjectに設定します。RestClient.RequestBodySpec.body(StreamingHttpOutputMessage.Body body) リクエストの本文を、OutputStreamSE に書き込む指定された関数に設定します。RestClient.RequestBodySpec.body(T body, ParameterizedTypeReference<T> bodyType) リクエストの本文を指定されたObjectに設定します。RestClient.RequestBodySpec.contentLength(long contentLength) Content-Lengthヘッダーで指定されているように、本文の長さをバイト単位で設定します。RestClient.RequestBodySpec.contentType(MediaType contentType) Content-Typeヘッダーで指定されているように、本文のメディア型を設定します。指定された名前のヒントを、サポートするSmartHttpMessageConverterの指定された値に設定します。org.springframework.web.client.support 内の RestClient.RequestBodySpec 使用
修飾子と型メソッド説明RestClientAdapter.newRequest(HttpRequestValues values) 指定されたHttpRequestValuesからリクエストを作成します。