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.
|
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 - public void close()
IGatewayLinkclose in interface IGatewayLinkIGatewayLink.close()public io.apiman.gateway.engine.beans.ServiceEndpoint getServiceEndpoint(String organizationId, String serviceId, String version) throws io.apiman.gateway.api.rest.contract.exceptions.NotAuthorizedException
IGatewayLinkgetServiceEndpoint in interface IGatewayLinkio.apiman.gateway.api.rest.contract.exceptions.NotAuthorizedExceptionIGatewayLink.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
IGatewayLinkService.publishService in interface IGatewayLinkservice - the service being publishedio.apiman.gateway.engine.beans.exceptions.PublishingExceptionIGatewayLink.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
IGatewayLinkService from the registry.retireService in interface IGatewayLinkservice - the service to retire/removeio.apiman.gateway.engine.beans.exceptions.PublishingExceptionIGatewayLink.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
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.RegistrationExceptionIGatewayLink.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
IGatewayLinkApplication from the registry.unregisterApplication in interface IGatewayLinkapplication - the application to removeio.apiman.gateway.engine.beans.exceptions.RegistrationExceptionIGatewayLink.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.