Class LoadBalancerInterceptor
java.lang.Object
org.springframework.cloud.client.loadbalancer.LoadBalancerInterceptor
- All Implemented Interfaces:
BlockingLoadBalancerInterceptor, org.springframework.http.client.ClientHttpRequestInterceptor
- Author:
- Spencer Gibb, Dave Syer, Ryan Baxter, William Tran
-
Constructor Summary
ConstructorsConstructorDescriptionLoadBalancerInterceptor(LoadBalancerClient loadBalancer) LoadBalancerInterceptor(LoadBalancerClient loadBalancer, LoadBalancerRequestFactory requestFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.client.ClientHttpRequestInterceptor
andThen, apply
-
Constructor Details
-
LoadBalancerInterceptor
public LoadBalancerInterceptor(LoadBalancerClient loadBalancer, LoadBalancerRequestFactory requestFactory) -
LoadBalancerInterceptor
-
-
Method Details
-
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:
interceptin interfaceorg.springframework.http.client.ClientHttpRequestInterceptor- Throws:
IOException
-