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() |
org.eclipse.lyo.oslc4j.core.model.ServiceProvider |
getServiceProvider()
If a
ServiceProvider is being used as a ServiceProvider registry without an owning ServiceProviderCatalog,
this will return the ServiceProvider. |
org.eclipse.lyo.oslc4j.core.model.ServiceProviderCatalog |
getServiceProviderCatalog()
If a
ServiceProviderCatalog is being used, this will return that object. |
org.eclipse.lyo.oslc4j.core.model.ServiceProvider[] |
getServiceProviders()
Return the registered
ServiceProvider's. |
URI |
registerServiceProvider(org.eclipse.lyo.oslc4j.core.model.ServiceProvider serviceProviderToRegister)
Register a
ServiceProvider. |
public ServiceProviderRegistryClient(Set<Class<?>> providers, String mediaType, String uri)
public ServiceProviderRegistryClient(Set<Class<?>> providers, String mediaType)
public URI registerServiceProvider(org.eclipse.lyo.oslc4j.core.model.ServiceProvider serviceProviderToRegister) throws org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException, URISyntaxException
ServiceProvider.org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationExceptionURISyntaxExceptionpublic void deregisterServiceProvider(URI serviceProviderURI) throws org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException
ServiceProvider.org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationExceptionpublic org.eclipse.lyo.oslc4j.core.model.ServiceProviderCatalog getServiceProviderCatalog()
ServiceProviderCatalog is being used, this will return that object.
Otherwise null will be returned.public org.eclipse.lyo.oslc4j.core.model.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 org.eclipse.lyo.oslc4j.core.model.ServiceProvider[] getServiceProviders()
ServiceProvider's.public OslcRestClient getClient()
Copyright © 2013. All Rights Reserved.