public class APIGatewayManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static APIGatewayManager |
getInstance() |
boolean |
isAPIPublished(org.wso2.carbon.appmgt.api.model.WebApp api,
String tenantDomain)
Checks whether the WebApp has been published.
|
void |
publishToGateway(org.wso2.carbon.appmgt.api.model.WebApp api,
APITemplateBuilder builder,
String tenantDomain)
Publishes an WebApp to all configured Gateways.
|
void |
removeFromGateway(org.wso2.carbon.appmgt.api.model.WebApp api,
String tenantDomain)
Removed an WebApp from the configured Gateways
|
public static APIGatewayManager getInstance()
public void publishToGateway(org.wso2.carbon.appmgt.api.model.WebApp api,
APITemplateBuilder builder,
String tenantDomain)
throws Exception
api - - The WebApp to be publishedbuilder - - The template buildertenantDomain - - Tenant Domain of the publisherException - - Thrown when publishing to at least one Gateway fails. A
single failure will stop all
subsequent attempts to publish to other Gateways.public void removeFromGateway(org.wso2.carbon.appmgt.api.model.WebApp api,
String tenantDomain)
throws Exception
api - - The WebApp to be removedtenantDomain - - Tenant Domain of the publisherException - - Thrown if a failure occurs while removing the WebApp from the
Gateway. A single failure will
stop all subsequent attempts to remove from other Gateways.public boolean isAPIPublished(org.wso2.carbon.appmgt.api.model.WebApp api,
String tenantDomain)
throws Exception
api - - The WebApp to be cheked.tenantDomain - - Tenant Domain of the publisherException - - Thrown if a check to at least one Gateway fails.Copyright © 2017 WSO2. All rights reserved.