Class SimpleRestTemplateConfigurator

    • Constructor Detail

      • SimpleRestTemplateConfigurator

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

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

        public SimpleRestTemplateConfigurator​(SSLSocketFactory sslSocketFactory)
        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
      • SimpleRestTemplateConfigurator

        public SimpleRestTemplateConfigurator​(SSLSocketFactory sslSocketFactory,
                                              HttpConnectionConfigurator configurator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create an instance with TLS configuration and a HttpURLConnection post-processor.
        Parameters:
        sslSocketFactory - the socket factory to use
        configurator - the post-processing logic to use for the HttpURLConnection
      • SimpleRestTemplateConfigurator

        public SimpleRestTemplateConfigurator​(SSLSocketFactory sslSocketFactory,
                                              HostnameVerifier hostnameVerifier)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create an instance with TLS configuration, including a custom hostname verifier.

        Note HttpsURLConnection sets a default hostname verifier, so setting a custom one is only needed for specific cases.

        Parameters:
        sslSocketFactory - the socket factory to use
        hostnameVerifier - the hostname verifier to use
      • SimpleRestTemplateConfigurator

        public SimpleRestTemplateConfigurator​(SSLSocketFactory sslSocketFactory,
                                              HostnameVerifier hostnameVerifier,
                                              HttpConnectionConfigurator configurator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create an instance with TLS configuration, a custom hostname verifier, and a HttpURLConnection post-processor.
        Parameters:
        sslSocketFactory - the socket factory to use
        hostnameVerifier - the hostname verifier to use
        configurator - the post-processing logic to use for the HttpURLConnection
    • 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