public class RestTemplateTransportClientFactory extends Object implements com.netflix.discovery.shared.transport.TransportClientFactory
RestTemplate
required by the
RestTemplateEurekaHttpClient
. Relies on Jackson for serialization and
deserialization.Constructor and Description |
---|
RestTemplateTransportClientFactory() |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ser.BeanSerializerModifier |
createJsonSerializerModifier() |
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter |
mappingJacksonHttpMessageConverter()
Provides the serialization configurations required by the Eureka Server.
|
com.netflix.discovery.shared.transport.EurekaHttpClient |
newClient(com.netflix.discovery.shared.resolver.EurekaEndpoint serviceUrl) |
void |
shutdown() |
public com.netflix.discovery.shared.transport.EurekaHttpClient newClient(com.netflix.discovery.shared.resolver.EurekaEndpoint serviceUrl)
newClient
in interface com.netflix.discovery.shared.transport.TransportClientFactory
public org.springframework.http.converter.json.MappingJackson2HttpMessageConverter mappingJacksonHttpMessageConverter()
SerializationFeature.WRAP_ROOT_VALUE
and
DeserializationFeature.UNWRAP_ROOT_VALUE
.
PropertyNamingStrategy.SnakeCaseStrategy
is applied to the underlying
ObjectMapper
.MappingJackson2HttpMessageConverter
objectpublic static com.fasterxml.jackson.databind.ser.BeanSerializerModifier createJsonSerializerModifier()
public void shutdown()
shutdown
in interface com.netflix.discovery.shared.transport.TransportClientFactory
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.