public class DubboTransporterInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
ClientHttpRequestInterceptor implementation.LoadBalancerInterceptor| Constructor and Description |
|---|
DubboTransporterInterceptor(DubboServiceMetadataRepository dubboServiceMetadataRepository,
List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters,
ClassLoader classLoader,
Map<String,Object> dubboTranslatedAttributes,
DubboGenericServiceFactory serviceFactory,
DubboGenericServiceExecutionContextFactory contextFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
customizeRequest(MutableHttpServerRequest httpServerRequest,
RestMethodMetadata dubboRestMethodMetadata,
RequestMetadata clientMetadata) |
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution) |
public DubboTransporterInterceptor(DubboServiceMetadataRepository dubboServiceMetadataRepository, List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters, ClassLoader classLoader, Map<String,Object> dubboTranslatedAttributes, DubboGenericServiceFactory serviceFactory, DubboGenericServiceExecutionContextFactory contextFactory)
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution)
throws IOException
intercept in interface org.springframework.http.client.ClientHttpRequestInterceptorIOExceptionprotected void customizeRequest(MutableHttpServerRequest httpServerRequest, RestMethodMetadata dubboRestMethodMetadata, RequestMetadata clientMetadata)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.