public class ClientConfiguration extends Object
Constructor and Description |
---|
ClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addEndpoint(Endpoint endpoint)
A collection of endpoint definitions to use by this Linked Data Client.
|
void |
addExcludeUri(String uriPrefix)
A collection of endpoint definitions to use by this Linked Data Client.
|
void |
addProvider(DataProvider provider)
A collection of provider definitions to use by this Linked Data Client.
|
int |
getConnectionTimeout()
HTTP connection timeout in milliseconds; default 10 seconds, because we don't want slow servers to slow down
batch retrievals
|
long |
getDefaultExpiry()
Default expiry time in seconds if not given by the server.
|
Set<Endpoint> |
getEndpoints()
A collection of endpoint definitions to use by this Linked Data Client.
|
Set<String> |
getExcludeUris()
A collection of endpoint definitions to use by this Linked Data Client.
|
org.apache.http.client.HttpClient |
getHttpClient() |
int |
getMaxParallelRequests()
Maximum number of HTTP requests to run in parallel.
|
long |
getMinimumExpiry()
Minimum expiry time in seconds in case the server returns a lower expiry time
|
Set<DataProvider> |
getProviders()
A collection of provider definitions to use by this Linked Data Client.
|
int |
getSocketTimeout()
Socket timeout in milliseconds; maximum time a socket may be idle; default 60 seconds
|
boolean |
isExcludedUri(String uri)
Return true in case the URI passed as argument is considered to be excluded.
|
void |
setConnectionTimeout(int connectionTimeout)
HTTP connection timeout in milliseconds; default 10 seconds, because we don't want slow servers to slow down
batch retrievals
|
void |
setDefaultExpiry(long defaultExpiry)
Default expiry time in seconds if not given by the server.
|
void |
setEndpoints(Set<Endpoint> endpoints)
A collection of endpoint definitions to use by this Linked Data Client.
|
void |
setExcludeUris(Set<String> excludeUris)
A collection of endpoint definitions to use by this Linked Data Client.
|
void |
setHttpClient(org.apache.http.client.HttpClient httpClient) |
void |
setMaxParallelRequests(int maxParallelRequests)
Maximum number of HTTP requests to run in parallel.
|
void |
setMinimumExpiry(long minimumExpiry)
Minimum expiry time in seconds in case the server returns a lower expiry time
|
void |
setProviders(Set<DataProvider> providers)
A collection of provider definitions to use by this Linked Data Client.
|
void |
setSocketTimeout(int socketTimeout)
Socket timeout in milliseconds; maximum time a socket may be idle; default 60 seconds
|
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public int getMaxParallelRequests()
public void setMaxParallelRequests(int maxParallelRequests)
public long getDefaultExpiry()
public void setDefaultExpiry(long defaultExpiry)
public long getMinimumExpiry()
public void setMinimumExpiry(long minimumExpiry)
public void addExcludeUri(String uriPrefix)
public Set<String> getExcludeUris()
public void setExcludeUris(Set<String> excludeUris)
public boolean isExcludedUri(String uri)
uri
- public void addEndpoint(Endpoint endpoint)
public Set<Endpoint> getEndpoints()
public void setEndpoints(Set<Endpoint> endpoints)
public void addProvider(DataProvider provider)
public Set<DataProvider> getProviders()
public void setProviders(Set<DataProvider> providers)
public org.apache.http.client.HttpClient getHttpClient()
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.