public class SPARQLServiceResolver extends AbstractFederatedServiceResolver implements FederatedServiceResolver, HttpClientDependent, SessionManagerDependent
SPARQLServiceResolver 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 AbstractFederatedServiceResolver.getService(String). If there is no service for the
specified url, a SPARQLFederatedService is created and registered for future use.
endpointToService| Constructor and Description |
|---|
SPARQLServiceResolver() |
| 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. |
HttpClientSessionManager |
getHttpClientSessionManager()
HttpClientSessionManager 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 |
setHttpClientSessionManager(HttpClientSessionManager client)
Assign an
HttpClientSessionManager that this object should use. |
void |
shutDown() |
getService, hasService, registerService, unregisterAll, unregisterServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServicegetSesameClient, setSesameClientpublic HttpClientSessionManager getHttpClientSessionManager()
SessionManagerDependentHttpClientSessionManager 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 HttpClientSessionManager was passed to or
created by this object respectively.getHttpClientSessionManager in interface SesameClientDependentgetHttpClientSessionManager in interface SessionManagerDependentHttpClientSessionManager instance or nullpublic void setHttpClientSessionManager(HttpClientSessionManager client)
SessionManagerDependentHttpClientSessionManager that this object should use. The life cycle of the given
HttpClientSessionManager 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.setHttpClientSessionManager in interface SesameClientDependentsetHttpClientSessionManager in interface SessionManagerDependentpublic 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
AbstractFederatedServiceResolverFederatedService for the given serviceUrl. This method is invoked, if no
FederatedService has been created yet for the serviceUrl.createService in class AbstractFederatedServiceResolverserviceUrl - the service IRIFederatedServiceQueryEvaluationExceptionpublic void shutDown()
shutDown in class AbstractFederatedServiceResolverCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.