インターフェース 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 が置き換えられます。SSL 以外の ClientHttpRequestFactory を構成する必要がある場合は、ClientHttpRequestFactorySettings と ClientHttpRequestFactories の使用を検討してください。- 導入:
- 3.2.0
- 作成者:
- Phillip Webb
メソッドのサマリー
メソッドの詳細
fromBundle
- パラメーター:
bundleName- 適用する SSL バンドルの名前- 戻り値:
- 設定を適用するための
ConsumerSE - 例外:
NoSuchSslBundleException- 指定された名前のバンドルが存在しない場合
fromBundle
- パラメーター:
bundle- 適用する SSL バンドル- 戻り値:
- 設定を適用するための
ConsumerSE