|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.lyo.oslc4j.client.ServiceProviderRegistryClient
public final class ServiceProviderRegistryClient
This class provides methods to register and
deregister ServiceProvider's.
This class also provides a method to retrieve the registered ServiceProvider's.
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceProviderRegistryClient(Set<Class<?>> providers,
String mediaType,
String uri)
public ServiceProviderRegistryClient(Set<Class<?>> providers,
String mediaType)
public ServiceProviderRegistryClient(Set<Class<?>> providers)
ServiceProvider's.
| Method Detail |
|---|
public URI registerServiceProvider(ServiceProvider serviceProviderToRegister)
throws OslcCoreApplicationException,
URISyntaxException
ServiceProvider.
OslcCoreApplicationException
URISyntaxException
public void deregisterServiceProvider(URI serviceProviderURI)
throws OslcCoreApplicationException
ServiceProvider.
OslcCoreApplicationExceptionpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||