public class RibbonLoadBalancingHttpClient extends AbstractLoadBalancingClient<RibbonApacheHttpRequest,RibbonApacheHttpResponse,org.apache.http.impl.client.CloseableHttpClient>
config, connectTimeout, delegate, followRedirects, okToRetryOnAllOperations, readTimeout, secure, serverIntrospector
Constructor and Description |
---|
RibbonLoadBalancingHttpClient(org.apache.http.impl.client.CloseableHttpClient delegate,
com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector) |
RibbonLoadBalancingHttpClient(com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.impl.client.CloseableHttpClient |
createDelegate(com.netflix.client.config.IClientConfig config) |
RibbonApacheHttpResponse |
execute(RibbonApacheHttpRequest request,
com.netflix.client.config.IClientConfig configOverride) |
com.netflix.client.RequestSpecificRetryHandler |
getRequestSpecificRetryHandler(RibbonApacheHttpRequest request,
com.netflix.client.config.IClientConfig requestConfig) |
protected RibbonApacheHttpRequest |
getSecureRequest(RibbonApacheHttpRequest request,
com.netflix.client.config.IClientConfig configOverride) |
URI |
reconstructURIWithServer(com.netflix.loadbalancer.Server server,
URI original) |
choose, customizeLoadBalancerCommandBuilder, getDelegate, initWithNiwsConfig, isClientRetryable, isSecure, validateServiceInstance
buildLoadBalancerCommand, executeWithLoadBalancer, executeWithLoadBalancer, isCircuitBreakerException, isRetriable, isRetriableException
deriveHostAndPortFromVipAddress, deriveSchemeAndPortFromPartialUri, generateNIWSException, getClientName, getDeepestCause, getDefaultPortFromScheme, getExecuteTracer, getLoadBalancer, getMaxAutoRetries, getMaxAutoRetriesNextServer, getNumberRetriesOnSameServer, getRetriesNextServer, getRetryHandler, getServerFromLoadBalancer, getServerStats, handleSameServerRetry, isOkToRetryOnAllOperations, noteError, noteOpenConnection, noteRequestCompletion, noteRequestCompletion, noteResponse, setLoadBalancer, setMaxAutoRetries, setMaxAutoRetriesNextServer, setOkToRetryOnAllOperations, setRetryHandler
public RibbonLoadBalancingHttpClient(com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector)
public RibbonLoadBalancingHttpClient(org.apache.http.impl.client.CloseableHttpClient delegate, com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector)
protected org.apache.http.impl.client.CloseableHttpClient createDelegate(com.netflix.client.config.IClientConfig config)
createDelegate
in class AbstractLoadBalancingClient<RibbonApacheHttpRequest,RibbonApacheHttpResponse,org.apache.http.impl.client.CloseableHttpClient>
public RibbonApacheHttpResponse execute(RibbonApacheHttpRequest request, com.netflix.client.config.IClientConfig configOverride) throws Exception
Exception
public URI reconstructURIWithServer(com.netflix.loadbalancer.Server server, URI original)
reconstructURIWithServer
in class com.netflix.loadbalancer.LoadBalancerContext
public com.netflix.client.RequestSpecificRetryHandler getRequestSpecificRetryHandler(RibbonApacheHttpRequest request, com.netflix.client.config.IClientConfig requestConfig)
getRequestSpecificRetryHandler
in class AbstractLoadBalancingClient<RibbonApacheHttpRequest,RibbonApacheHttpResponse,org.apache.http.impl.client.CloseableHttpClient>
protected RibbonApacheHttpRequest getSecureRequest(RibbonApacheHttpRequest request, com.netflix.client.config.IClientConfig configOverride)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.