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)
LDClientService
ping
in interface LDClientService
public void shutdown()
shutdown
in interface LDClientService
public ClientResponse retrieveResource(String resource) throws DataRetrievalException
retrieveResource
in interface LDClientService
resource
- the URI resource for which to retrieve the triplesDataRetrievalException
public org.apache.http.client.HttpClient getClient()
getClient
in interface LDClientService
public ClientConfiguration getClientConfiguration()
getClientConfiguration
in interface LDClientService
public Endpoint getEndpoint(String resource)
getEndpoint
in interface LDClientService
resource
- the KiWiUriResource to check.public boolean hasEndpoint(String urlPattern)
hasEndpoint
in interface LDClientService
urlPattern
- public Set<DataProvider> getDataProviders()
getDataProviders
in interface LDClientService
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.