public final class LDClient extends Object implements LDClientService
| Constructor and Description | 
|---|
LDClient()  | 
LDClient(ClientConfiguration config)  | 
| Modifier and Type | Method and Description | 
|---|---|
org.apache.http.client.HttpClient | 
getClient()
Get access to the Apache HTTP Client managed by the connection handler to execute
 a request. 
 | 
ClientConfiguration | 
getClientConfiguration()
Get the client configuration used by the connection handler 
 | 
Set<DataProvider> | 
getDataProviders()
Return a collection of all available data providers (i.e. 
 | 
Endpoint | 
getEndpoint(String resource)
Retrieve the endpoint matching the KiWiUriResource passed as argument. 
 | 
boolean | 
hasEndpoint(String urlPattern)
Test whether an endpoint definition for the given url pattern already exists. 
 | 
boolean | 
ping(String resource)
Perform a ping (HTTP HEAD) to the resource 
 | 
ClientResponse | 
retrieveResource(String resource)
Retrieve all triples for this resource from the Linked Data Cloud. 
 | 
void | 
shutdown()  | 
public LDClient()
public LDClient(ClientConfiguration config)
public boolean ping(String resource)
LDClientServiceping in interface LDClientServicepublic void shutdown()
shutdown in interface LDClientServicepublic ClientResponse retrieveResource(String resource) throws DataRetrievalException
retrieveResource in interface LDClientServiceresource - the URI resource for which to retrieve the triplesDataRetrievalExceptionpublic org.apache.http.client.HttpClient getClient()
getClient in interface LDClientServicepublic ClientConfiguration getClientConfiguration()
getClientConfiguration in interface LDClientServicepublic Endpoint getEndpoint(String resource)
getEndpoint in interface LDClientServiceresource - the KiWiUriResource to check.public boolean hasEndpoint(String urlPattern)
hasEndpoint in interface LDClientServiceurlPattern - public Set<DataProvider> getDataProviders()
getDataProviders in interface LDClientServiceCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.