Class ZipkinRestTemplateWrapper
- java.lang.Object
-
- org.springframework.http.client.support.HttpAccessor
-
- org.springframework.http.client.support.InterceptingHttpAccessor
-
- org.springframework.web.client.RestTemplate
-
- org.springframework.cloud.sleuth.zipkin2.ZipkinRestTemplateWrapper
-
- All Implemented Interfaces:
org.springframework.web.client.RestOperations
public class ZipkinRestTemplateWrapper extends org.springframework.web.client.RestTemplateResolves at runtime where the Zipkin server is. If there's no discovery client thenURIfrom the properties is taken. Otherwise service discovery is pinged for current Zipkin address.- Since:
- 3.0.0
- Author:
- Marcin Grzejszczak
-
-
Constructor Summary
Constructors Constructor Description ZipkinRestTemplateWrapper(ZipkinProperties zipkinProperties, ZipkinUrlExtractor extractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> TdoExecute(URI originalUrl, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor)-
Methods inherited from class org.springframework.web.client.RestTemplate
acceptHeaderRequestCallback, delete, delete, delete, exchange, exchange, exchange, exchange, exchange, exchange, exchange, exchange, execute, execute, execute, getErrorHandler, getForEntity, getForEntity, getForEntity, getForObject, getForObject, getForObject, getMessageConverters, getUriTemplateHandler, handleResponse, headersExtractor, headForHeaders, headForHeaders, headForHeaders, httpEntityCallback, httpEntityCallback, optionsForAllow, optionsForAllow, optionsForAllow, patchForObject, patchForObject, patchForObject, postForEntity, postForEntity, postForEntity, postForLocation, postForLocation, postForLocation, postForObject, postForObject, postForObject, put, put, put, responseEntityExtractor, setDefaultUriVariables, setErrorHandler, setMessageConverters, setUriTemplateHandler
-
Methods inherited from class org.springframework.http.client.support.InterceptingHttpAccessor
getInterceptors, getRequestFactory, setInterceptors, setRequestFactory
-
-
-
-
Constructor Detail
-
ZipkinRestTemplateWrapper
public ZipkinRestTemplateWrapper(ZipkinProperties zipkinProperties, ZipkinUrlExtractor extractor)
-
-
Method Detail
-
doExecute
protected <T> T doExecute(URI originalUrl, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor) throws org.springframework.web.client.RestClientException
- Overrides:
doExecutein classorg.springframework.web.client.RestTemplate- Throws:
org.springframework.web.client.RestClientException
-
-