public class DefaultZipkinRestTemplateCustomizer extends Object implements ZipkinRestTemplateCustomizer
ZipkinRestTemplateCustomizer
that provides the GZip compression if
ZipkinProperties.getCompression()
is enabled.Constructor and Description |
---|
DefaultZipkinRestTemplateCustomizer(ZipkinProperties zipkinProperties) |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.client.RestTemplate |
customizeTemplate(org.springframework.web.client.RestTemplate restTemplate)
Customizes the
RestTemplate instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customize
public DefaultZipkinRestTemplateCustomizer(ZipkinProperties zipkinProperties)
public org.springframework.web.client.RestTemplate customizeTemplate(org.springframework.web.client.RestTemplate restTemplate)
ZipkinRestTemplateCustomizer
RestTemplate
instance. Might return a new one if necessary.customizeTemplate
in interface ZipkinRestTemplateCustomizer
restTemplate
- default object to customizeRestTemplate
or a new objectCopyright © 2019 Pivotal Software, Inc.. All rights reserved.