Class LoadBalancerUriTools
java.lang.Object
org.springframework.cloud.client.loadbalancer.LoadBalancerUriTools
- Since:
- 2.2.0
- Author:
- Olga Maciaszek-Sharma
-
Method Summary
Modifier and TypeMethodDescriptionstatic URI
reconstructURI
(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
- theServiceInstance
to redirect the request to.original
- theURI
from the original request- Returns:
- the modified
URI
-