Class OkHttpRestTemplateConfigurator

    • Constructor Detail

      • OkHttpRestTemplateConfigurator

        public OkHttpRestTemplateConfigurator()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create an instance with no TLS configuration and no OkHttpClient.Builder post-processor.
      • OkHttpRestTemplateConfigurator

        public OkHttpRestTemplateConfigurator​(OkHttpClientBuilderConfigurator configurator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create an instance with a OkHttpClient.Builder post-processor.
        Parameters:
        configurator - the post-processing logic to use for the OkHttpClient.Builder
      • OkHttpRestTemplateConfigurator

        public OkHttpRestTemplateConfigurator​(SSLSocketFactory sslSocketFactory,
                                              X509TrustManager trustManager)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create an instance with TLS configuration.
        Parameters:
        sslSocketFactory - the socket factory to use
        trustManager - the trust manager to use
        See Also:
        OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory, X509TrustManager)
      • OkHttpRestTemplateConfigurator

        public OkHttpRestTemplateConfigurator​(SSLSocketFactory sslSocketFactory,
                                              X509TrustManager trustManager,
                                              OkHttpClientBuilderConfigurator configurator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create an instance with TLS configuration and a OkHttpClient.Builder post-processor.
        Parameters:
        sslSocketFactory - the socket factory to use
        trustManager - the trust manager to use
        configurator - the post-processing logic to use for the OkHttpClient.Builder
        See Also:
        OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory, X509TrustManager)
    • Method Detail

      • configure

        public org.springframework.web.client.RestTemplate configure​(ClientCreationContext context)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: RestTemplateConfigurator
        Configure a RestTemplate instance and return it for use in the Client.
        Specified by:
        configure in interface RestTemplateConfigurator
        Parameters:
        context - some context during client creation
        Returns:
        the RestTemplate to use