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.RestTemplateConfigurator
that sets anSimpleClientHttpRequestFactory
on 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 noHttpURLConnection
post-processor.SimpleRestTemplateConfigurator(HttpConnectionConfigurator configurator)
Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with aHttpURLConnection
post-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 aHttpURLConnection
post-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 aHttpURLConnection
post-processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.springframework.web.client.RestTemplate
configure(ClientCreationContext context)
Deprecated, for removal: This API element is subject to removal in a future version.Configure aRestTemplate
instance 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 noHttpURLConnection
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 aHttpURLConnection
post-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 aHttpURLConnection
post-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
HttpsURLConnection
sets 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 aHttpURLConnection
post-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:RestTemplateConfigurator
Configure aRestTemplate
instance and return it for use in theClient
.- Specified by:
configure
in interfaceRestTemplateConfigurator
- Parameters:
context
- some context during client creation- Returns:
- the
RestTemplate
to use
-
-