WebClient
を推奨 @DeprecatedSE public interface AsyncRestOperations
AsyncRestTemplate
によって実装されます。直接使用されることはあまりありませんが、簡単にモックやスタブを作成できるため、テスト容易性を高めるための便利なオプションです。AsyncRestTemplate
, RestOperations
修飾子と型 | メソッドと説明 |
---|---|
ListenableFuture<?> | delete(StringSE url, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 指定された URI のリソースを非同期的に削除します。 |
ListenableFuture<?> | delete(StringSE url, ObjectSE... uriVariables) 使用すべきではありません。 指定された URI のリソースを非同期的に削除します。 |
ListenableFuture<?> | delete(URISE url) 使用すべきではありません。 指定された URI のリソースを非同期的に削除します。 |
<T> ListenableFuture<ResponseEntity<T>> | exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 指定された URI テンプレートに対して HTTP メソッドを非同期に実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスを ResponseEntity として返します。 |
<T> ListenableFuture<ResponseEntity<T>> | exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType, ObjectSE... uriVariables) 使用すべきではありません。 指定された URI テンプレートに対して HTTP メソッドを非同期に実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスを ResponseEntity として返します。 |
<T> ListenableFuture<ResponseEntity<T>> | exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 指定された URI テンプレートに対して HTTP メソッドを非同期に実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスを ResponseEntity として返します。 |
<T> ListenableFuture<ResponseEntity<T>> | exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, ObjectSE... uriVariables) 使用すべきではありません。 指定された URI テンプレートに対して HTTP メソッドを非同期に実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスを ResponseEntity として返します。 |
<T> ListenableFuture<ResponseEntity<T>> | exchange(URISE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType) 使用すべきではありません。 指定された URI テンプレートに対して HTTP メソッドを非同期に実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスを ResponseEntity として返します。 |
<T> ListenableFuture<ResponseEntity<T>> | exchange(URISE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) 使用すべきではありません。 指定された URI テンプレートに対して HTTP メソッドを非同期に実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスを ResponseEntity として返します。 |
<T> ListenableFuture<T> | execute(StringSE url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 指定された URI テンプレートに対して HTTP メソッドを非同期的に実行し、 AsyncRequestCallback を使用してリクエストを準備し、ResponseExtractor を使用してレスポンスを読み取ります。 |
<T> ListenableFuture<T> | execute(StringSE url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor, ObjectSE... uriVariables) 使用すべきではありません。 指定された URI テンプレートに対して HTTP メソッドを非同期的に実行し、 AsyncRequestCallback を使用してリクエストを準備し、ResponseExtractor を使用してレスポンスを読み取ります。 |
<T> ListenableFuture<T> | execute(URISE url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor) 使用すべきではありません。 指定された URL に対して HTTP メソッドを非同期に実行し、 AsyncRequestCallback を使用してリクエストを準備し、ResponseExtractor を使用してレスポンスを読み取ります。 |
<T> ListenableFuture<ResponseEntity<T>> | getForEntity(StringSE url, ClassSE<T> responseType, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 URI テンプレートで GET を実行して、表現を非同期に取得します。 |
<T> ListenableFuture<ResponseEntity<T>> | getForEntity(StringSE url, ClassSE<T> responseType, ObjectSE... uriVariables) 使用すべきではありません。 指定された URL で GET を実行して、エンティティを非同期に取得します。 |
<T> ListenableFuture<ResponseEntity<T>> | getForEntity(URISE url, ClassSE<T> responseType) 使用すべきではありません。 URL で GET を実行して、表現を非同期に取得します。 |
RestOperations | getRestOperations() 使用すべきではありません。 同期 Spring RestTemplate を公開して、同期呼び出しを許可します。 |
ListenableFuture<HttpHeaders> | headForHeaders(StringSE url, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 URI テンプレートで指定されたリソースのすべてのヘッダーを非同期に取得します。 |
ListenableFuture<HttpHeaders> | headForHeaders(StringSE url, ObjectSE... uriVariables) 使用すべきではありません。 URI テンプレートで指定されたリソースのすべてのヘッダーを非同期に取得します。 |
ListenableFuture<HttpHeaders> | headForHeaders(URISE url) 使用すべきではありません。 URL で指定されたリソースのすべてのヘッダーを非同期に取得します。 |
ListenableFuture<SetSE<HttpMethod>> | optionsForAllow(StringSE url, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 指定された URI の Allow ヘッダーの値を非同期的に返します。 |
ListenableFuture<SetSE<HttpMethod>> | optionsForAllow(StringSE url, ObjectSE... uriVariables) 使用すべきではありません。 指定された URI の Allow ヘッダーの値を非同期的に返します。 |
ListenableFuture<SetSE<HttpMethod>> | optionsForAllow(URISE url) 使用すべきではありません。 指定された URL の Allow ヘッダーの値を非同期的に返します。 |
<T> ListenableFuture<ResponseEntity<T>> | postForEntity(StringSE url, HttpEntity<?> request, ClassSE<T> responseType, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 指定されたオブジェクトを URI テンプレートに POST することで新しいリソースを作成し、非同期でレスポンスを ResponseEntity として返します。 |
<T> ListenableFuture<ResponseEntity<T>> | postForEntity(StringSE url, HttpEntity<?> request, ClassSE<T> responseType, ObjectSE... uriVariables) 使用すべきではありません。 指定されたオブジェクトを URI テンプレートに POST することで新しいリソースを作成し、非同期でレスポンスを ResponseEntity として返します。 |
<T> ListenableFuture<ResponseEntity<T>> | postForEntity(URISE url, HttpEntity<?> request, ClassSE<T> responseType) 使用すべきではありません。 指定されたオブジェクトを URL に POST することで新しいリソースを作成し、非同期でレスポンスを ResponseEntity として返します。 |
ListenableFuture<URISE> | postForLocation(StringSE url, HttpEntity<?> request, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 指定されたオブジェクトを URI テンプレートに POST することで新しいリソースを作成し、 Location ヘッダーの値を非同期的に返します。 |
ListenableFuture<URISE> | postForLocation(StringSE url, HttpEntity<?> request, ObjectSE... uriVariables) 使用すべきではありません。 指定されたオブジェクトを URI テンプレートに POST することで新しいリソースを作成し、 Location ヘッダーの値を非同期的に返します。 |
ListenableFuture<URISE> | postForLocation(URISE url, HttpEntity<?> request) 使用すべきではありません。 指定されたオブジェクトを URL に POST することにより新しいリソースを作成し、 Location ヘッダーの値を非同期的に返します。 |
ListenableFuture<?> | put(StringSE url, HttpEntity<?> request, MapSE<StringSE,?> uriVariables) 使用すべきではありません。 指定されたオブジェクトを URI テンプレートに PUT することにより、新しいリソースを作成します。 |
ListenableFuture<?> | put(StringSE url, HttpEntity<?> request, ObjectSE... uriVariables) 使用すべきではありません。 指定されたオブジェクトを URI に PUT することにより、リソースを作成または更新します。 |
ListenableFuture<?> | put(URISE url, HttpEntity<?> request) 使用すべきではありません。 指定されたオブジェクトを URL に PUT することにより、新しいリソースを作成します。 |
RestOperations getRestOperations()
<T> ListenableFuture<ResponseEntity<T>> getForEntity(StringSE url, ClassSE<T> responseType, ObjectSE... uriVariables) throws RestClientException
ResponseEntity
に保存されます。URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
url
- URLresponseType
- 戻り値の型 uriVariables
- テンプレートを展開する変数 Future
SE にラップされたエンティティ RestClientException
<T> ListenableFuture<ResponseEntity<T>> getForEntity(StringSE url, ClassSE<T> responseType, MapSE<StringSE,?> uriVariables) throws RestClientException
ResponseEntity
に保存されます。URI テンプレート変数は、指定されたマップを使用して展開されます。
url
- URLresponseType
- 戻り値の型 uriVariables
- URI テンプレートの変数を含むマップ Future
SE にラップされたエンティティ RestClientException
<T> ListenableFuture<ResponseEntity<T>> getForEntity(URISE url, ClassSE<T> responseType) throws RestClientException
ResponseEntity
に保存されます。url
- URLresponseType
- 戻り値の型 Future
SE にラップされたエンティティ RestClientException
ListenableFuture<HttpHeaders> headForHeaders(StringSE url, ObjectSE... uriVariables) throws RestClientException
URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
url
- URLuriVariables
- テンプレートを展開する変数 Future
SE にラップされたそのリソースのすべての HTTP ヘッダー RestClientException
ListenableFuture<HttpHeaders> headForHeaders(StringSE url, MapSE<StringSE,?> uriVariables) throws RestClientException
URI テンプレート変数は、指定されたマップを使用して展開されます。
url
- URLuriVariables
- URI テンプレートの変数を含むマップ Future
SE にラップされたそのリソースのすべての HTTP ヘッダー RestClientException
ListenableFuture<HttpHeaders> headForHeaders(URISE url) throws RestClientException
url
- URLFuture
SE にラップされたそのリソースのすべての HTTP ヘッダー RestClientException
ListenableFuture<URISE> postForLocation(StringSE url, @Nullable HttpEntity<?> request, ObjectSE... uriVariables) throws RestClientException
Location
ヘッダーの値を非同期的に返します。このヘッダーは通常、新しいリソースが保存されている場所を示します。URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
url
- URLrequest
- POST されるオブジェクト (null
の場合があります)uriVariables
- テンプレートを展開する変数 Future
SE にラップされた Location
ヘッダーの値 RestClientException
HttpEntity
ListenableFuture<URISE> postForLocation(StringSE url, @Nullable HttpEntity<?> request, MapSE<StringSE,?> uriVariables) throws RestClientException
Location
ヘッダーの値を非同期的に返します。このヘッダーは通常、新しいリソースが保存されている場所を示します。URI テンプレート変数は、指定されたマップを使用して展開されます。
url
- URLrequest
- POST されるオブジェクト (null
の場合があります)uriVariables
- テンプレートを展開する変数 Future
SE にラップされた Location
ヘッダーの値 RestClientException
HttpEntity
ListenableFuture<URISE> postForLocation(URISE url, @Nullable HttpEntity<?> request) throws RestClientException
Location
ヘッダーの値を非同期的に返します。このヘッダーは通常、新しいリソースが保存されている場所を示します。url
- URLrequest
- POST されるオブジェクト (null
の場合があります)Future
SE にラップされた Location
ヘッダーの値 RestClientException
HttpEntity
<T> ListenableFuture<ResponseEntity<T>> postForEntity(StringSE url, @Nullable HttpEntity<?> request, ClassSE<T> responseType, ObjectSE... uriVariables) throws RestClientException
ResponseEntity
として返します。URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
url
- URLrequest
- POST されるオブジェクト (null
の場合があります)uriVariables
- テンプレートを展開する変数 Future
SE にラップされたエンティティ RestClientException
HttpEntity
<T> ListenableFuture<ResponseEntity<T>> postForEntity(StringSE url, @Nullable HttpEntity<?> request, ClassSE<T> responseType, MapSE<StringSE,?> uriVariables) throws RestClientException
ResponseEntity
として返します。URI テンプレート変数は、指定されたマップを使用して展開されます。
url
- URLrequest
- POST されるオブジェクト (null
の場合があります)uriVariables
- テンプレートを展開する変数 Future
SE にラップされたエンティティ RestClientException
HttpEntity
<T> ListenableFuture<ResponseEntity<T>> postForEntity(URISE url, @Nullable HttpEntity<?> request, ClassSE<T> responseType) throws RestClientException
ResponseEntity
として返します。url
- URLrequest
- POST されるオブジェクト (null
の場合があります)Future
SE にラップされたエンティティ RestClientException
HttpEntity
ListenableFuture<?> put(StringSE url, @Nullable HttpEntity<?> request, ObjectSE... uriVariables) throws RestClientException
URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
Future は完了時に null
の結果を返します。
url
- URLrequest
- PUT されるオブジェクト (null
の場合があります)uriVariables
- テンプレートを展開する変数 RestClientException
HttpEntity
ListenableFuture<?> put(StringSE url, @Nullable HttpEntity<?> request, MapSE<StringSE,?> uriVariables) throws RestClientException
URI テンプレート変数は、指定されたマップを使用して展開されます。
Future は完了時に null
の結果を返します。
url
- URLrequest
- PUT されるオブジェクト (null
の場合があります)uriVariables
- テンプレートを展開する変数 RestClientException
HttpEntity
ListenableFuture<?> put(URISE url, @Nullable HttpEntity<?> request) throws RestClientException
Future は完了時に null
の結果を返します。
url
- URLrequest
- PUT されるオブジェクト (null
の場合があります)RestClientException
HttpEntity
ListenableFuture<?> delete(StringSE url, ObjectSE... uriVariables) throws RestClientException
URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
Future は完了時に null
の結果を返します。
url
- URLuriVariables
- テンプレートで展開する変数 RestClientException
ListenableFuture<?> delete(StringSE url, MapSE<StringSE,?> uriVariables) throws RestClientException
URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
Future は完了時に null
の結果を返します。
url
- URLuriVariables
- テンプレートで展開する変数 RestClientException
ListenableFuture<?> delete(URISE url) throws RestClientException
URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
Future は完了時に null
の結果を返します。
url
- URLRestClientException
ListenableFuture<SetSE<HttpMethod>> optionsForAllow(StringSE url, ObjectSE... uriVariables) throws RestClientException
URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
url
- URLuriVariables
- テンプレートで展開する変数 Future
SE にラップされた許可ヘッダーの値 RestClientException
ListenableFuture<SetSE<HttpMethod>> optionsForAllow(StringSE url, MapSE<StringSE,?> uriVariables) throws RestClientException
URI テンプレート変数は、指定されたマップを使用して展開されます。
url
- URLuriVariables
- テンプレートで展開する変数 Future
SE にラップされた許可ヘッダーの値 RestClientException
ListenableFuture<SetSE<HttpMethod>> optionsForAllow(URISE url) throws RestClientException
url
- URLFuture
SE にラップされた許可ヘッダーの値 RestClientException
<T> ListenableFuture<ResponseEntity<T>> exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType, ObjectSE... uriVariables) throws RestClientException
ResponseEntity
として返します。URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
url
- URLmethod
- HTTP メソッド (GET、POST など)requestEntity
- リクエストに書き込むエンティティ(ヘッダーおよび / または本文) (null
の場合があります)responseType
- 戻り値の型 uriVariables
- テンプレートで展開する変数 Future
SE にラップされたエンティティとしてのレスポンス RestClientException
<T> ListenableFuture<ResponseEntity<T>> exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType, MapSE<StringSE,?> uriVariables) throws RestClientException
ResponseEntity
として返します。URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
url
- URLmethod
- HTTP メソッド (GET、POST など)requestEntity
- リクエストに書き込むエンティティ(ヘッダーおよび / または本文) (null
の場合があります)responseType
- 戻り値の型 uriVariables
- テンプレートで展開する変数 Future
SE にラップされたエンティティとしてのレスポンス RestClientException
<T> ListenableFuture<ResponseEntity<T>> exchange(URISE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType) throws RestClientException
ResponseEntity
として返します。url
- URLmethod
- HTTP メソッド (GET、POST など)requestEntity
- リクエストに書き込むエンティティ(ヘッダーおよび / または本文) (null
の場合があります)responseType
- 戻り値の型 Future
SE にラップされたエンティティとしてのレスポンス RestClientException
<T> ListenableFuture<ResponseEntity<T>> exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, ObjectSE... uriVariables) throws RestClientException
ResponseEntity
として返します。指定された ParameterizedTypeReference
は、一般的な型情報を渡すために使用されます。ParameterizedTypeReference<List<MyBean>> myBean = new ParameterizedTypeReference<List<MyBean>>() {}; ResponseEntity<List<MyBean>> response = template.exchange("https://example.com",HttpMethod.GET, null, myBean);
url
- URLmethod
- HTTP メソッド (GET、POST など)requestEntity
- リクエストに書き込むエンティティ(ヘッダーおよび / または本文) (null
の場合があります)responseType
- 戻り値の型 uriVariables
- テンプレートで展開する変数 Future
SE にラップされたエンティティとしてのレスポンス RestClientException
<T> ListenableFuture<ResponseEntity<T>> exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, MapSE<StringSE,?> uriVariables) throws RestClientException
ResponseEntity
として返します。指定された ParameterizedTypeReference
は、一般的な型情報を渡すために使用されます。ParameterizedTypeReference<List<MyBean>> myBean = new ParameterizedTypeReference<List<MyBean>>() {}; ResponseEntity<List<MyBean>> response = template.exchange("https://example.com",HttpMethod.GET, null, myBean);
url
- URLmethod
- HTTP メソッド (GET、POST など)requestEntity
- リクエストに書き込むエンティティ(ヘッダーおよび / または本文) (null
の場合があります)responseType
- 戻り値の型 uriVariables
- テンプレートで展開する変数 Future
SE にラップされたエンティティとしてのレスポンス RestClientException
<T> ListenableFuture<ResponseEntity<T>> exchange(URISE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) throws RestClientException
ResponseEntity
として返します。指定された ParameterizedTypeReference
は、一般的な型情報を渡すために使用されます。ParameterizedTypeReference<List<MyBean>> myBean = new ParameterizedTypeReference<List<MyBean>>() {}; ResponseEntity<List<MyBean>> response = template.exchange("https://example.com",HttpMethod.GET, null, myBean);
url
- URLmethod
- HTTP メソッド (GET、POST など)requestEntity
- リクエストに書き込むエンティティ(ヘッダーおよび / または本文) (null
の場合があります)responseType
- 戻り値の型 Future
SE にラップされたエンティティとしてのレスポンス RestClientException
<T> ListenableFuture<T> execute(StringSE url, HttpMethod method, @Nullable AsyncRequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, ObjectSE... uriVariables) throws RestClientException
AsyncRequestCallback
を使用してリクエストを準備し、ResponseExtractor
を使用してレスポンスを読み取ります。URI テンプレート変数は、指定された URI 変数があればそれを使用して展開されます。
url
- URLmethod
- HTTP メソッド (GET、POST など)requestCallback
- リクエストを準備するオブジェクト responseExtractor
- レスポンスから戻り値を抽出するオブジェクト uriVariables
- テンプレートで展開する変数 ResponseExtractor
によって返される任意のオブジェクト RestClientException
<T> ListenableFuture<T> execute(StringSE url, HttpMethod method, @Nullable AsyncRequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, MapSE<StringSE,?> uriVariables) throws RestClientException
AsyncRequestCallback
を使用してリクエストを準備し、ResponseExtractor
を使用してレスポンスを読み取ります。URI テンプレート変数は、指定された URI 変数マップを使用して展開されます。
url
- URLmethod
- HTTP メソッド (GET、POST など)requestCallback
- リクエストを準備するオブジェクト responseExtractor
- レスポンスから戻り値を抽出するオブジェクト uriVariables
- テンプレートで展開する変数 ResponseExtractor
によって返される任意のオブジェクト RestClientException
<T> ListenableFuture<T> execute(URISE url, HttpMethod method, @Nullable AsyncRequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) throws RestClientException
AsyncRequestCallback
を使用してリクエストを準備し、ResponseExtractor
を使用してレスポンスを読み取ります。url
- URLmethod
- HTTP メソッド (GET、POST など)requestCallback
- リクエストを準備するオブジェクト responseExtractor
- レスポンスから戻り値を抽出するオブジェクト ResponseExtractor
によって返される任意のオブジェクト RestClientException