Class LoadBalancerUriTools

java.lang.Object
org.springframework.cloud.client.loadbalancer.LoadBalancerUriTools

public final class LoadBalancerUriTools extends Object
Since:
2.2.0
Author:
Olga Maciaszek-Sharma
  • Method Details

    • reconstructURI

      public static URI reconstructURI(ServiceInstance serviceInstance, URI original)
      Modifies the URI in order to redirect the request to a service instance of choice.
      Parameters:
      serviceInstance - the ServiceInstance to redirect the request to.
      original - the URI from the original request
      Returns:
      the modified URI