Class SimpleRestTemplateConfigurator

    • Constructor Detail

      • SimpleRestTemplateConfigurator

        public SimpleRestTemplateConfigurator()
        Create an instance with no TLS configuration and no HttpURLConnection post-processor.
      • SimpleRestTemplateConfigurator

        public SimpleRestTemplateConfigurator​(SSLSocketFactory sslSocketFactory)
        Create an instance with TLS configuration.
        Parameters:
        sslSocketFactory - the socket factory to use
      • SimpleRestTemplateConfigurator

        public SimpleRestTemplateConfigurator​(SSLSocketFactory sslSocketFactory,
                                              HostnameVerifier hostnameVerifier)
        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)
        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