public class DelegateFederatedServiceResolver extends AbstractFederatedServiceResolver implements FederatedServiceResolver
FederatedServiceResolver
which redirects SERVICE requests to the federation member (if the SERVICE IRI
correspond to a member) or to the provided delegate.endpointToService
Constructor and Description |
---|
DelegateFederatedServiceResolver(EndpointManager endpointManager) |
Modifier and Type | Method and Description |
---|---|
protected FederatedService |
createService(String serviceUrl)
Create a new
FederatedService for the given serviceUrl. |
FederatedService |
getService(String serviceUrl)
Retrieve the
FederatedService registered for serviceUrl. |
void |
initialize() |
protected boolean |
isFedXEndpoint(String serviceUrl) |
void |
setDelegate(FederatedServiceResolver federatedServiceResolver) |
void |
shutDown() |
hasService, registerService, unregisterAll, unregisterService
public DelegateFederatedServiceResolver(EndpointManager endpointManager)
public void initialize()
public void shutDown()
shutDown
in class AbstractFederatedServiceResolver
public void setDelegate(FederatedServiceResolver federatedServiceResolver)
public FederatedService getService(String serviceUrl) throws QueryEvaluationException
AbstractFederatedServiceResolver
FederatedService
registered for serviceUrl. If there is no service registered for
serviceUrl, a new FederatedService
is created and registered.getService
in interface FederatedServiceResolver
getService
in class AbstractFederatedServiceResolver
serviceUrl
- locator for the federation serviceFederatedService
, created fresh if necessaryQueryEvaluationException
- If there was an exception generated while retrieving the service.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
protected boolean isFedXEndpoint(String serviceUrl)
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.