public class AbstractConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
context |
protected boolean |
disableSslValidation |
protected java.net.URI[] |
endpoints |
protected LoadBalancingAlgorithm |
loadBalancingAlgorithm |
protected int |
resolveCount |
protected java.lang.ThreadLocal<java.net.URI> |
threadEndpoint |
Constructor and Description |
---|
AbstractConfig(java.lang.String context,
java.net.URI... endpoints) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContext()
Returns the base API context (i.e.
|
java.net.URI[] |
getEndpoints()
Returns the configured endpoints.
|
LoadBalancingAlgorithm |
getLoadBalancingAlgorithm()
Returns the load balancing algorithm implementation used to distribute requests between multiple endpoints.
|
boolean |
isDisableSslValidation()
Returns whether SSL validation should be disabled (allowing self-signed certificates to be used for https
requests).
|
java.net.URI |
resolvePath(java.lang.String relativePath,
java.lang.String query)
Resolves a path relative to the API context.
|
void |
setContext(java.lang.String context)
Sets the base API context (i.e.
|
void |
setDisableSslValidation(boolean disableSslValidation)
Sets whether SSL validation should be disabled (allowing self-signed certificates to be used for https
requests).
|
void |
setEndpoints(java.net.URI[] endpoints)
Sets the configured endpoints.
|
void |
setLoadBalancingAlgorithm(LoadBalancingAlgorithm loadBalancingAlgorithm)
Sets the load balancing algorithm implementation used to distribute requests between multiple endpoints.
|
protected java.lang.String context
protected java.net.URI[] endpoints
protected boolean disableSslValidation
protected int resolveCount
protected LoadBalancingAlgorithm loadBalancingAlgorithm
protected java.lang.ThreadLocal<java.net.URI> threadEndpoint
public AbstractConfig(java.lang.String context, java.net.URI... endpoints)
public java.net.URI resolvePath(java.lang.String relativePath, java.lang.String query)
public java.lang.String getContext()
public void setContext(java.lang.String context)
public boolean isDisableSslValidation()
public void setDisableSslValidation(boolean disableSslValidation)
public java.net.URI[] getEndpoints()
public void setEndpoints(java.net.URI[] endpoints)
public LoadBalancingAlgorithm getLoadBalancingAlgorithm()
public void setLoadBalancingAlgorithm(LoadBalancingAlgorithm loadBalancingAlgorithm)