public class RestClient
extends com.netflix.client.AbstractLoadBalancerAwareClient<com.netflix.client.http.HttpRequest,com.netflix.client.http.HttpResponse>
IClientConfig.| Constructor and Description |
|---|
RestClient() |
RestClient(com.sun.jersey.api.client.Client jerseyClient) |
RestClient(com.netflix.client.config.IClientConfig ncc) |
| Modifier and Type | Method and Description |
|---|---|
protected com.sun.jersey.api.client.Client |
apacheHttpClientSpecificInitialization() |
protected com.netflix.util.Pair<java.lang.String,java.lang.Integer> |
deriveHostAndPortFromVipAddress(java.lang.String vipAddress) |
protected com.netflix.util.Pair<java.lang.String,java.lang.Integer> |
deriveSchemeAndPortFromPartialUri(com.netflix.client.http.HttpRequest task) |
com.netflix.client.http.HttpResponse |
execute(com.netflix.client.http.HttpRequest task) |
protected int |
getDefaultPortFromScheme(java.lang.String scheme) |
com.sun.jersey.api.client.Client |
getJerseyClient() |
java.security.KeyStore |
getKeyStore() |
static java.net.URL |
getResource(java.lang.String resourceName) |
void |
initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig) |
protected boolean |
isCircuitBreakerException(java.lang.Throwable e) |
protected boolean |
isRetriableException(java.lang.Throwable e) |
void |
resetSSLSocketFactory(AbstractSslContextFactory abstractContextFactory) |
void |
setJerseyClient(com.sun.jersey.api.client.Client c) |
void |
shutdown() |
executeOnSingleServer, executeWithLoadBalancercomputeFinalUriWithLoadBalancer, generateNIWSException, getClientName, getDeepestCause, getErrorHandler, getExecuteTracer, getLoadBalancer, getMaxAutoRetries, getMaxAutoRetriesNextServer, getNumberRetriesOnSameServer, getRetriesNextServer, getServerStats, handleSameServerRetry, isOkToRetryOnAllOperations, isPresentAsCause, isRetriable, noteOpenConnection, noteRequestCompletion, setErrorHandler, setLoadBalancer, setMaxAutoRetries, setMaxAutoRetriesNextServer, setOkToRetryOnAllOperationspublic RestClient()
public RestClient(com.netflix.client.config.IClientConfig ncc)
public RestClient(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.client.LoadBalancerContext<com.netflix.client.http.HttpRequest,com.netflix.client.http.HttpResponse>protected com.sun.jersey.api.client.Client apacheHttpClientSpecificInitialization()
public void resetSSLSocketFactory(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 com.netflix.client.http.HttpResponse execute(com.netflix.client.http.HttpRequest task)
throws java.lang.Exception
java.lang.Exceptionprotected int getDefaultPortFromScheme(java.lang.String scheme)
getDefaultPortFromScheme in class com.netflix.client.LoadBalancerContext<com.netflix.client.http.HttpRequest,com.netflix.client.http.HttpResponse>protected com.netflix.util.Pair<java.lang.String,java.lang.Integer> deriveSchemeAndPortFromPartialUri(com.netflix.client.http.HttpRequest task)
deriveSchemeAndPortFromPartialUri in class com.netflix.client.LoadBalancerContext<com.netflix.client.http.HttpRequest,com.netflix.client.http.HttpResponse>protected boolean isRetriableException(java.lang.Throwable e)
isRetriableException in class com.netflix.client.AbstractLoadBalancerAwareClient<com.netflix.client.http.HttpRequest,com.netflix.client.http.HttpResponse>protected boolean isCircuitBreakerException(java.lang.Throwable e)
isCircuitBreakerException in class com.netflix.client.AbstractLoadBalancerAwareClient<com.netflix.client.http.HttpRequest,com.netflix.client.http.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.client.LoadBalancerContext<com.netflix.client.http.HttpRequest,com.netflix.client.http.HttpResponse>java.net.URISyntaxExceptioncom.netflix.client.ClientExceptionpublic void shutdown()