@Deprecated public class RestClient extends com.netflix.client.AbstractLoadBalancerAwareClient<HttpRequest,HttpResponse>
IClientConfig
.Constructor and Description |
---|
RestClient()
Deprecated.
|
RestClient(com.netflix.client.config.IClientConfig ncc)
Deprecated.
|
RestClient(com.netflix.loadbalancer.ILoadBalancer lb)
Deprecated.
|
RestClient(com.netflix.loadbalancer.ILoadBalancer lb,
com.sun.jersey.api.client.Client jerseyClient)
Deprecated.
|
RestClient(com.netflix.loadbalancer.ILoadBalancer lb,
com.netflix.client.config.IClientConfig ncc)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected com.sun.jersey.api.client.Client |
apacheHttpClientSpecificInitialization()
Deprecated.
|
protected com.netflix.util.Pair<java.lang.String,java.lang.Integer> |
deriveHostAndPortFromVipAddress(java.lang.String vipAddress)
Deprecated.
|
protected com.netflix.util.Pair<java.lang.String,java.lang.Integer> |
deriveSchemeAndPortFromPartialUri(java.net.URI uri)
Deprecated.
|
HttpResponse |
execute(HttpRequest task)
Deprecated.
|
HttpResponse |
execute(HttpRequest task,
com.netflix.client.config.IClientConfig requestConfig)
Deprecated.
|
protected int |
getDefaultPortFromScheme(java.lang.String scheme)
Deprecated.
|
com.sun.jersey.api.client.Client |
getJerseyClient()
Deprecated.
|
java.security.KeyStore |
getKeyStore()
Deprecated.
|
com.netflix.client.RequestSpecificRetryHandler |
getRequestSpecificRetryHandler(HttpRequest request,
com.netflix.client.config.IClientConfig requestConfig)
Deprecated.
|
static java.net.URL |
getResource(java.lang.String resourceName)
Deprecated.
|
void |
initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
Deprecated.
|
protected boolean |
isCircuitBreakerException(java.lang.Throwable e)
Deprecated.
|
protected boolean |
isRetriableException(java.lang.Throwable e)
Deprecated.
|
void |
resetSSLSocketFactory(com.netflix.client.ssl.AbstractSslContextFactory abstractContextFactory)
Deprecated.
|
void |
setJerseyClient(com.sun.jersey.api.client.Client c)
Deprecated.
|
void |
shutdown()
Deprecated.
|
buildLoadBalancerCommand, customizeLoadBalancerCommandBuilder, executeWithLoadBalancer, executeWithLoadBalancer, isRetriable
generateNIWSException, getClientName, getDeepestCause, getExecuteTracer, getLoadBalancer, getMaxAutoRetries, getMaxAutoRetriesNextServer, getNumberRetriesOnSameServer, getRetriesNextServer, getRetryHandler, getServerFromLoadBalancer, getServerStats, handleSameServerRetry, isOkToRetryOnAllOperations, noteError, noteOpenConnection, noteRequestCompletion, noteRequestCompletion, noteResponse, reconstructURIWithServer, setLoadBalancer, setMaxAutoRetries, setMaxAutoRetriesNextServer, setOkToRetryOnAllOperations, setRetryHandler
public RestClient()
public RestClient(com.netflix.loadbalancer.ILoadBalancer lb)
public RestClient(com.netflix.loadbalancer.ILoadBalancer lb, com.netflix.client.config.IClientConfig ncc)
public RestClient(com.netflix.client.config.IClientConfig ncc)
public RestClient(com.netflix.loadbalancer.ILoadBalancer lb, com.sun.jersey.api.client.Client jerseyClient)
public void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
initWithNiwsConfig
in interface com.netflix.client.IClientConfigAware
initWithNiwsConfig
in class com.netflix.loadbalancer.LoadBalancerContext
protected com.sun.jersey.api.client.Client apacheHttpClientSpecificInitialization()
public void resetSSLSocketFactory(com.netflix.client.ssl.AbstractSslContextFactory abstractContextFactory)
public java.security.KeyStore getKeyStore()
public static java.net.URL getResource(java.lang.String resourceName)
public com.sun.jersey.api.client.Client getJerseyClient()
public void setJerseyClient(com.sun.jersey.api.client.Client c)
public HttpResponse execute(HttpRequest task) throws java.lang.Exception
java.lang.Exception
public HttpResponse execute(HttpRequest task, com.netflix.client.config.IClientConfig requestConfig) throws java.lang.Exception
java.lang.Exception
protected int getDefaultPortFromScheme(java.lang.String scheme)
getDefaultPortFromScheme
in class com.netflix.loadbalancer.LoadBalancerContext
protected com.netflix.util.Pair<java.lang.String,java.lang.Integer> deriveSchemeAndPortFromPartialUri(java.net.URI uri)
deriveSchemeAndPortFromPartialUri
in class com.netflix.loadbalancer.LoadBalancerContext
protected boolean isRetriableException(java.lang.Throwable e)
isRetriableException
in class com.netflix.client.AbstractLoadBalancerAwareClient<HttpRequest,HttpResponse>
protected boolean isCircuitBreakerException(java.lang.Throwable e)
isCircuitBreakerException
in class com.netflix.client.AbstractLoadBalancerAwareClient<HttpRequest,HttpResponse>
protected com.netflix.util.Pair<java.lang.String,java.lang.Integer> deriveHostAndPortFromVipAddress(java.lang.String vipAddress) throws java.net.URISyntaxException, com.netflix.client.ClientException
deriveHostAndPortFromVipAddress
in class com.netflix.loadbalancer.LoadBalancerContext
java.net.URISyntaxException
com.netflix.client.ClientException
public com.netflix.client.RequestSpecificRetryHandler getRequestSpecificRetryHandler(HttpRequest request, com.netflix.client.config.IClientConfig requestConfig)
getRequestSpecificRetryHandler
in class com.netflix.client.AbstractLoadBalancerAwareClient<HttpRequest,HttpResponse>
public void shutdown()