@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.
|
executeOnSingleServer, executeWithLoadBalancer, executeWithLoadBalancer, isRetriablegenerateNIWSException, getClientName, getDeepestCause, getExecuteTracer, getLoadBalancer, getMaxAutoRetries, getMaxAutoRetriesNextServer, getNumberRetriesOnSameServer, getRetriesNextServer, getRetryHandler, getServerFromLoadBalancer, getServerStats, handleSameServerRetry, isOkToRetryOnAllOperations, noteError, noteOpenConnection, noteRequestCompletion, noteRequestCompletion, noteResponse, reconstructURIWithServer, setLoadBalancer, setMaxAutoRetries, setMaxAutoRetriesNextServer, setOkToRetryOnAllOperations, setRetryHandlerpublic 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.IClientConfigAwareinitWithNiwsConfig in class com.netflix.loadbalancer.LoadBalancerContextprotected 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.Exceptionpublic HttpResponse execute(HttpRequest task, com.netflix.client.config.IClientConfig requestConfig) throws java.lang.Exception
java.lang.Exceptionprotected int getDefaultPortFromScheme(java.lang.String scheme)
getDefaultPortFromScheme in class com.netflix.loadbalancer.LoadBalancerContextprotected com.netflix.util.Pair<java.lang.String,java.lang.Integer> deriveSchemeAndPortFromPartialUri(java.net.URI uri)
deriveSchemeAndPortFromPartialUri in class com.netflix.loadbalancer.LoadBalancerContextprotected 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.LoadBalancerContextjava.net.URISyntaxExceptioncom.netflix.client.ClientExceptionpublic 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()