public final class ServiceProviderRegistryClient extends Object
register
and
deregister
ServiceProvider
's.
This class also provides a method to retrieve
the registered ServiceProvider
's.Constructor and Description |
---|
ServiceProviderRegistryClient(Set<Class<?>> providers)
Construct a client to assist with registering and deregistering
ServiceProvider 's. |
ServiceProviderRegistryClient(Set<Class<?>> providers,
String mediaType) |
ServiceProviderRegistryClient(Set<Class<?>> providers,
String mediaType,
String uri) |
Modifier and Type | Method and Description |
---|---|
void |
deregisterServiceProvider(URI serviceProviderURI)
Remove registration for a
ServiceProvider . |
OslcRestClient |
getClient() |
ServiceProvider |
getServiceProvider()
If a
ServiceProvider is being used as a ServiceProvider registry without an owning ServiceProviderCatalog ,
this will return the ServiceProvider . |
ServiceProviderCatalog |
getServiceProviderCatalog()
If a
ServiceProviderCatalog is being used, this will return that object. |
ServiceProvider[] |
getServiceProviders()
Return the registered
ServiceProvider 's. |
URI |
registerServiceProvider(ServiceProvider serviceProviderToRegister)
Register a
ServiceProvider . |
public ServiceProviderRegistryClient(Set<Class<?>> providers, String mediaType, String uri)
public ServiceProviderRegistryClient(Set<Class<?>> providers, String mediaType)
public ServiceProviderRegistryClient(Set<Class<?>> providers)
ServiceProvider
's.public URI registerServiceProvider(ServiceProvider serviceProviderToRegister) throws OslcCoreApplicationException, URISyntaxException
ServiceProvider
.public void deregisterServiceProvider(URI serviceProviderURI) throws OslcCoreApplicationException
ServiceProvider
.OslcCoreApplicationException
public ServiceProviderCatalog getServiceProviderCatalog()
ServiceProviderCatalog
is being used, this will return that object.
Otherwise null will be returned.public ServiceProvider getServiceProvider()
ServiceProvider
is being used as a ServiceProvider
registry without an owning ServiceProviderCatalog
,
this will return the ServiceProvider
.
Otherwise null will be returned.public ServiceProvider[] getServiceProviders()
ServiceProvider
's.public OslcRestClient getClient()
Copyright © 2017. All rights reserved.