public class FederatedServiceResolverImpl extends FederatedServiceResolverBase implements FederatedServiceResolver, HttpClientDependent, SesameClientDependent
FederatedServiceResolverImpl is used to manage a set of
FederatedService instances, which are used to evaluate SERVICE
expressions for particular service Urls.
Lookup can be done via the serviceUrl using the method
FederatedServiceResolverBase.getService(String). If there is no service for the specified url, a
SPARQLFederatedService is created and registered for future use.
endpointToService| Constructor and Description |
|---|
FederatedServiceResolverImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected FederatedService |
createService(String serviceUrl)
Create a new
FederatedService for the given serviceUrl. |
org.apache.http.client.HttpClient |
getHttpClient()
HttpClient that has been assigned or has been used by this object. |
SesameClient |
getSesameClient()
SesameClient that has been assigned or has been used by this
object. |
void |
setHttpClient(org.apache.http.client.HttpClient httpClient)
Assign an
HttpClient that this object should use. |
void |
setSesameClient(SesameClient client)
Assign an
SesameClient that this object should use. |
void |
shutDown() |
getService, registerService, unregisterAll, unregisterServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServicepublic SesameClient getSesameClient()
SesameClientDependentSesameClient that has been assigned or has been used by this
object. The life cycle might not be or might be tied to this object,
depending on whether SesameClient was passed to or created by this
object respectively.getSesameClient in interface SesameClientDependentSesameClient instance or nullpublic void setSesameClient(SesameClient client)
SesameClientDependentSesameClient that this object should use. The life cycle
of the given SesameClient is independent of this object. Closing
or shutting down this object does not have any impact on the given client.
Callers must ensure that the given client is properly closed elsewhere.setSesameClient in interface SesameClientDependentpublic org.apache.http.client.HttpClient getHttpClient()
HttpClientDependentHttpClient that has been assigned or has been used by this object.
The life cycle might not be or might be tied to this object, depending on
whether HttpClient was passed to or created by this object
respectively.getHttpClient in interface HttpClientDependentHttpClient instance or nullpublic void setHttpClient(org.apache.http.client.HttpClient httpClient)
HttpClientDependentHttpClient that this object should use. The life cycle
of the given HttpClient is independent of this object. Closing or
shutting down this object does not have any impact on the given client.
Callers must ensure that the given client is properly closed elsewhere.setHttpClient in interface HttpClientDependentprotected FederatedService createService(String serviceUrl) throws QueryEvaluationException
FederatedServiceResolverBaseFederatedService for the given serviceUrl. This method
is invoked, if no FederatedService has been created yet for the
serviceUrl.createService in class FederatedServiceResolverBaseserviceUrl - the service IRIFederatedServiceQueryEvaluationExceptionpublic void shutDown()
shutDown in class FederatedServiceResolverBaseCopyright © 2001–2015 Aduna. All rights reserved.