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, unregisterService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getService
getSesameClient, setSesameClient
public HttpClientSessionManager getHttpClientSessionManager()
SessionManagerDependent
HttpClientSessionManager
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 SesameClientDependent
getHttpClientSessionManager
in interface SessionManagerDependent
HttpClientSessionManager
instance or nullpublic void setHttpClientSessionManager(HttpClientSessionManager client)
SessionManagerDependent
HttpClientSessionManager
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 SesameClientDependent
setHttpClientSessionManager
in interface SessionManagerDependent
public org.apache.http.client.HttpClient getHttpClient()
HttpClientDependent
HttpClient
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 HttpClientDependent
HttpClient
instance or nullpublic void setHttpClient(org.apache.http.client.HttpClient httpClient)
HttpClientDependent
HttpClient
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 HttpClientDependent
protected FederatedService createService(String serviceUrl) throws QueryEvaluationException
AbstractFederatedServiceResolver
FederatedService
for the given serviceUrl. This method is invoked, if no
FederatedService
has been created yet for the serviceUrl.createService
in class AbstractFederatedServiceResolver
serviceUrl
- the service IRIFederatedService
QueryEvaluationException
public void shutDown()
shutDown
in class AbstractFederatedServiceResolver
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.