インターフェース 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 設定を適用すると、以前の configuredClientHttpRequestFactory がすべて置き換えられます。置き換えられた ClientHttpRequestFactory は、設定済みの HttpClientSettings と適切な SslBundle のみに適用されます。

ClientHttpRequestFactory を SSL 以外で構成する必要がある場合は、ClientHttpRequestFactoryBuilder の使用を検討してください。

導入:
4.0.0
作成者:
Phillip Webb