public class RestGatewayLink extends Object implements IGatewayLink
| Constructor and Description |
|---|
RestGatewayLink(io.apiman.manager.api.beans.gateways.GatewayBean gateway)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close down the gateway link when it's no longer needed.
|
protected void |
configureBasicAuth(org.apache.http.HttpRequest request)
Configures BASIC authentication for the request.
|
protected GatewayClient |
getClient() |
io.apiman.manager.api.beans.gateways.RestGatewayConfigBean |
getConfig() |
io.apiman.gateway.engine.beans.ServiceEndpoint |
getServiceEndpoint(String organizationId,
String serviceId,
String version)
Gets the service endpoint from the gateway.
|
io.apiman.gateway.engine.beans.SystemStatus |
getStatus()
Gets the current status of the gateway.
|
void |
publishService(io.apiman.gateway.engine.beans.Service service)
Publishes a new
Service. |
void |
registerApplication(io.apiman.gateway.engine.beans.Application application)
Registers a new
Application. |
void |
retireService(io.apiman.gateway.engine.beans.Service service)
Retires (removes) a
Service from the registry. |
void |
setConfig(io.apiman.manager.api.beans.gateways.RestGatewayConfigBean config) |
void |
unregisterApplication(io.apiman.gateway.engine.beans.Application application)
Removes an
Application from the registry. |
public RestGatewayLink(io.apiman.manager.api.beans.gateways.GatewayBean gateway)
gateway - the gatewaypublic void close()
IGatewayLinkclose in interface IGatewayLinkIGatewayLink.close()public io.apiman.gateway.engine.beans.SystemStatus getStatus()
throws GatewayAuthenticationException
IGatewayLinkgetStatus in interface IGatewayLinkGatewayAuthenticationException - when unable to authenticate with gatewayIGatewayLink.getStatus()public io.apiman.gateway.engine.beans.ServiceEndpoint getServiceEndpoint(String organizationId, String serviceId, String version) throws GatewayAuthenticationException
IGatewayLinkgetServiceEndpoint in interface IGatewayLinkorganizationId - the org idserviceId - the service idversion - the versionGatewayAuthenticationException - when unable to authenticate with gatewayIGatewayLink.getServiceEndpoint(java.lang.String, java.lang.String, java.lang.String)public void publishService(io.apiman.gateway.engine.beans.Service service)
throws io.apiman.gateway.engine.beans.exceptions.PublishingException,
GatewayAuthenticationException
IGatewayLinkService.publishService in interface IGatewayLinkservice - the service being publishedio.apiman.gateway.engine.beans.exceptions.PublishingException - when unable to publish serviceGatewayAuthenticationException - when unable to authenticate with gatewayIGatewayLink.publishService(io.apiman.gateway.engine.beans.Service)public void retireService(io.apiman.gateway.engine.beans.Service service)
throws io.apiman.gateway.engine.beans.exceptions.PublishingException,
GatewayAuthenticationException
IGatewayLinkService from the registry.retireService in interface IGatewayLinkservice - the service to retire/removeio.apiman.gateway.engine.beans.exceptions.PublishingException - when unable to retire serviceGatewayAuthenticationException - when unable to authenticate with gatewayIGatewayLink.retireService(io.apiman.gateway.engine.beans.Service)public void registerApplication(io.apiman.gateway.engine.beans.Application application)
throws io.apiman.gateway.engine.beans.exceptions.RegistrationException,
GatewayAuthenticationException
IGatewayLinkApplication. An application is ultimately a collection of
contracts to managed services.registerApplication in interface IGatewayLinkapplication - the application being registeredio.apiman.gateway.engine.beans.exceptions.RegistrationException - when unable to register applicationGatewayAuthenticationException - when unable to authenticate with gatewayIGatewayLink.registerApplication(io.apiman.gateway.engine.beans.Application)public void unregisterApplication(io.apiman.gateway.engine.beans.Application application)
throws io.apiman.gateway.engine.beans.exceptions.RegistrationException,
GatewayAuthenticationException
IGatewayLinkApplication from the registry.unregisterApplication in interface IGatewayLinkapplication - the application to removeio.apiman.gateway.engine.beans.exceptions.RegistrationException - when unable to registerGatewayAuthenticationException - when unable to authenticate with gatewayIGatewayLink.unregisterApplication(io.apiman.gateway.engine.beans.Application)protected void configureBasicAuth(org.apache.http.HttpRequest request)
request - protected GatewayClient getClient()
public io.apiman.manager.api.beans.gateways.RestGatewayConfigBean getConfig()
public void setConfig(io.apiman.manager.api.beans.gateways.RestGatewayConfigBean config)
config - the config to setCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.