Class LoadBalancerUriTools
java.lang.Object
org.springframework.cloud.client.loadbalancer.LoadBalancerUriTools
- Since:
- 2.2.0
- Author:
- Olga Maciaszek-Sharma
-
Method Summary
Modifier and TypeMethodDescriptionstatic URIreconstructURI(ServiceInstance serviceInstance, URI original) Modifies the URI in order to redirect the request to a service instance of choice.
-
Method Details
-
reconstructURI
Modifies the URI in order to redirect the request to a service instance of choice.- Parameters:
serviceInstance- theServiceInstanceto redirect the request to.original- theURIfrom the original request- Returns:
- the modified
URI
-