Class LoadBalancerInterceptor
- java.lang.Object
-
- org.springframework.cloud.client.loadbalancer.LoadBalancerInterceptor
-
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class LoadBalancerInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
- Author:
- Spencer Gibb, Dave Syer, Ryan Baxter, William Tran
-
-
Constructor Summary
Constructors Constructor Description LoadBalancerInterceptor(LoadBalancerClient loadBalancer)
LoadBalancerInterceptor(LoadBalancerClient loadBalancer, LoadBalancerRequestFactory requestFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.client.ClientHttpResponse
intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
-
-
-
Constructor Detail
-
LoadBalancerInterceptor
public LoadBalancerInterceptor(LoadBalancerClient loadBalancer, LoadBalancerRequestFactory requestFactory)
-
LoadBalancerInterceptor
public LoadBalancerInterceptor(LoadBalancerClient loadBalancer)
-
-
Method Detail
-
intercept
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException
- Specified by:
intercept
in interfaceorg.springframework.http.client.ClientHttpRequestInterceptor
- Throws:
IOException
-
-