Class FeignAddServiceNameContext
java.lang.Object
com.huaweicloud.common.adapters.feign.FeignAddServiceNameContext
- All Implemented Interfaces:
feign.RequestInterceptor,org.springframework.core.Ordered
public class FeignAddServiceNameContext
extends Object
implements feign.RequestInterceptor, org.springframework.core.Ordered
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionFeignAddServiceNameContext(org.springframework.cloud.client.serviceregistry.Registration registration) -
Method Summary
-
Constructor Details
-
FeignAddServiceNameContext
public FeignAddServiceNameContext(org.springframework.cloud.client.serviceregistry.Registration registration)
-
-
Method Details
-
apply
public void apply(feign.RequestTemplate requestTemplate) - Specified by:
applyin interfacefeign.RequestInterceptor
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-