use of org.wso2.carbon.apimgt.gateway.utils.LocalEntryServiceProxy in project carbon-apimgt by wso2.
the class GoogleAnalyticsConfigDeployer method deploy.
public void deploy() throws APIManagementException {
try {
LocalEntryServiceProxy localEntryAdminClient = new LocalEntryServiceProxy(tenantDomain);
String endpoint = baseURL + APIConstants.GA_CONFIG_RETRIEVAL_ENDPOINT;
try (CloseableHttpResponse closeableHttpResponse = invokeService(endpoint, tenantDomain)) {
deployAsLocalEntry(closeableHttpResponse, localEntryAdminClient);
}
} catch (IOException | ArtifactSynchronizerException e) {
throw new APIManagementException("Error while deploying Google analytics configuration", e);
}
}
Aggregations