インターフェース RestClientSsl
public interface RestClientSsl
apply SSL 構成から RestClient.Builder に使用できるインターフェース。通常は次のように使用されます。
@Bean
public MyBean myBean(RestClient.Builder restClientBuilder, RestClientSsl ssl) {
RestClient restClient = restClientBuilder.apply(ssl.fromBundle("mybundle")).build();
return new MyBean(restClient);
}
NOTE: SSL 設定を適用すると、以前の configured、ClientHttpRequestFactory がすべて置き換えられます。置き換えられた ClientHttpRequestFactory は、設定済みの HttpClientSettings と適切な SslBundle のみに適用されます。ClientHttpRequestFactory を SSL 以外で構成する必要がある場合は、ClientHttpRequestFactoryBuilder の使用を検討してください。
- 導入:
- 4.0.0
- 作成者:
- Phillip Webb
メソッドのサマリー
メソッドの詳細
fromBundle
- パラメーター:
bundleName- 適用する SSL バンドルの名前- 戻り値:
- 設定を適用するための
ConsumerSE - 例外:
NoSuchSslBundleException- 指定された名前のバンドルが存在しない場合
fromBundle
- パラメーター:
bundle- 適用する SSL バンドル- 戻り値:
- 設定を適用するための
ConsumerSE