public interface IRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
getContract(io.apiman.gateway.engine.beans.ServiceRequest request,
IAsyncResultHandler<io.apiman.gateway.engine.beans.ServiceContract> handler)
Gets the
Contract to use based on information included in the inbound
service request. |
void |
getService(String organizationId,
String serviceId,
String serviceVersion,
IAsyncResultHandler<io.apiman.gateway.engine.beans.Service> handler)
Gets a service by its service coordinates.
|
void |
publishService(io.apiman.gateway.engine.beans.Service service,
IAsyncResultHandler<Void> handler)
Publishes a new
Service into the registry. |
void |
registerApplication(io.apiman.gateway.engine.beans.Application application,
IAsyncResultHandler<Void> handler)
Registers a new
Application with the registry. |
void |
retireService(io.apiman.gateway.engine.beans.Service service,
IAsyncResultHandler<Void> handler)
Retires (removes) a
Service from the registry. |
void |
unregisterApplication(io.apiman.gateway.engine.beans.Application application,
IAsyncResultHandler<Void> handler)
Removes an
Application from the registry. |
void getContract(io.apiman.gateway.engine.beans.ServiceRequest request,
IAsyncResultHandler<io.apiman.gateway.engine.beans.ServiceContract> handler)
Contract to use based on information included in the inbound
service request.request - an inbound service requesthandler - io.apiman.gateway.engine.beans.exceptions.InvalidContractExceptionvoid publishService(io.apiman.gateway.engine.beans.Service service,
IAsyncResultHandler<Void> handler)
Service into the registry.service - the service being publishedhandler - io.apiman.gateway.engine.beans.exceptions.PublishingExceptionvoid retireService(io.apiman.gateway.engine.beans.Service service,
IAsyncResultHandler<Void> handler)
Service from the registry.service - handler - io.apiman.gateway.engine.beans.exceptions.PublishingExceptionvoid registerApplication(io.apiman.gateway.engine.beans.Application application,
IAsyncResultHandler<Void> handler)
Application with the registry.application - the application being registeredhandler - io.apiman.gateway.engine.beans.exceptions.RegistrationExceptionvoid unregisterApplication(io.apiman.gateway.engine.beans.Application application,
IAsyncResultHandler<Void> handler)
Application from the registry.application - the application to removehandler - io.apiman.gateway.engine.beans.exceptions.RegistrationExceptionvoid getService(String organizationId, String serviceId, String serviceVersion, IAsyncResultHandler<io.apiman.gateway.engine.beans.Service> handler)
organizationId - serviceId - serviceVersion - handler - Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.