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, unregisterService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getService
public SesameClient getSesameClient()
SesameClientDependent
SesameClient
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 SesameClientDependent
SesameClient
instance or nullpublic void setSesameClient(SesameClient client)
SesameClientDependent
SesameClient
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 SesameClientDependent
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
FederatedServiceResolverBase
FederatedService
for the given serviceUrl. This method
is invoked, if no FederatedService
has been created yet for the
serviceUrl.createService
in class FederatedServiceResolverBase
serviceUrl
- the service IRIFederatedService
QueryEvaluationException
public void shutDown()
shutDown
in class FederatedServiceResolverBase
Copyright © 2001-2016 Aduna. All Rights Reserved.