public class ApiPlatformClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiPlatformClient.RestClientStatus |
| Modifier and Type | Field and Description |
|---|---|
static String |
GATEWAY_API_BASE_RESOURCE |
static String |
PROXIES_API_BASE_RESOURCE |
| Constructor and Description |
|---|
ApiPlatformClient() |
| Modifier and Type | Method and Description |
|---|---|
PlatformResponse |
activateEndpoint(String organizationId,
String environmentId,
Long apiId) |
void |
cleanConnections() |
void |
configure(com.mulesoft.mule.runtime.gw.api.config.GatewayConfiguration gatewayConfiguration) |
PlatformResponse<Me> |
connect() |
InputStream |
downloadTemplateAsset(String link) |
PlatformResponse<ApiResponse> |
getApi(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
String apiEntityTag) |
PlatformResponse<ApiClientsResponse> |
getApiClients(String organizationId,
String environmentId,
Long apiId,
String contractsEntityTag) |
PlatformResponse<CoreServicesClientDto> |
getClient(String id,
String secret) |
String |
getOrgId() |
PolicyTemplateDto |
getPolicyTemplateMetadata(com.mulesoft.mule.runtime.gw.api.policy.PolicyTemplateKey templateKey) |
boolean |
isConnected() |
int |
postHttpEvents(List<com.mulesoft.mule.runtime.gw.api.analytics.AnalyticsHttpEvent> events) |
int |
postMetrics(String eventsBody) |
void |
shutdown() |
public static final String GATEWAY_API_BASE_RESOURCE
public static final String PROXIES_API_BASE_RESOURCE
public void configure(com.mulesoft.mule.runtime.gw.api.config.GatewayConfiguration gatewayConfiguration) throws URISyntaxException
URISyntaxExceptionpublic void cleanConnections()
public PlatformResponse<ApiClientsResponse> getApiClients(String organizationId, String environmentId, Long apiId, String contractsEntityTag)
public PlatformResponse activateEndpoint(String organizationId, String environmentId, Long apiId)
public PlatformResponse<ApiResponse> getApi(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, String apiEntityTag)
public int postHttpEvents(List<com.mulesoft.mule.runtime.gw.api.analytics.AnalyticsHttpEvent> events) throws IOException
IOExceptionpublic int postMetrics(String eventsBody) throws IOException
IOExceptionpublic PlatformResponse<Me> connect()
public PolicyTemplateDto getPolicyTemplateMetadata(com.mulesoft.mule.runtime.gw.api.policy.PolicyTemplateKey templateKey)
public InputStream downloadTemplateAsset(String link) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic String getOrgId()
public boolean isConnected()
public void shutdown()
public PlatformResponse<CoreServicesClientDto> getClient(String id, String secret)
Copyright © 2014–2022 MuleSoft, Inc.. All rights reserved.