Module com.rabbitmq.http.client
Package com.rabbitmq.http.client
Class SimpleRestTemplateConfigurator
- java.lang.Object
-
- com.rabbitmq.http.client.SimpleRestTemplateConfigurator
-
- All Implemented Interfaces:
RestTemplateConfigurator
@Deprecated(since="4.0.0", forRemoval=true) public class SimpleRestTemplateConfigurator extends Object implements RestTemplateConfigurator
Deprecated, for removal: This API element is subject to removal in a future version.RestTemplateConfiguratorthat sets anSimpleClientHttpRequestFactoryon aRestTemplate.Use this to use standard JDK facilities to create requests in the
Client'sRestTemplate.- Since:
- 3.6.0
-
-
Constructor Summary
Constructors Constructor Description SimpleRestTemplateConfigurator()Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with no TLS configuration and noHttpURLConnectionpost-processor.SimpleRestTemplateConfigurator(HttpConnectionConfigurator configurator)Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with aHttpURLConnectionpost-processor.SimpleRestTemplateConfigurator(SSLSocketFactory sslSocketFactory)Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with TLS configuration.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 aHttpURLConnectionpost-processor.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.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 aHttpURLConnectionpost-processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.springframework.web.client.RestTemplateconfigure(ClientCreationContext context)Deprecated, for removal: This API element is subject to removal in a future version.Configure aRestTemplateinstance and return it for use in theClient.
-
-
-
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 noHttpURLConnectionpost-processor.
-
SimpleRestTemplateConfigurator
public SimpleRestTemplateConfigurator(HttpConnectionConfigurator configurator)
Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with aHttpURLConnectionpost-processor.- Parameters:
configurator- the post-processing logic to use for theHttpURLConnection
-
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 aHttpURLConnectionpost-processor.- Parameters:
sslSocketFactory- the socket factory to useconfigurator- the post-processing logic to use for theHttpURLConnection
-
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
HttpsURLConnectionsets a default hostname verifier, so setting a custom one is only needed for specific cases.- Parameters:
sslSocketFactory- the socket factory to usehostnameVerifier- 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 aHttpURLConnectionpost-processor.- Parameters:
sslSocketFactory- the socket factory to usehostnameVerifier- the hostname verifier to useconfigurator- the post-processing logic to use for theHttpURLConnection
-
-
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:RestTemplateConfiguratorConfigure aRestTemplateinstance and return it for use in theClient.- Specified by:
configurein interfaceRestTemplateConfigurator- Parameters:
context- some context during client creation- Returns:
- the
RestTemplateto use
-
-