Package io.apiman.manager.api.gateway
Interface IGatewayLink
-
- All Known Implementing Classes:
RestGatewayLink
public interface IGatewayLinkLinks the design time API with a Gateway. This allows the design time API to interface with the runtime Gateway in order to do things like publishing APIs and Contracts.- Author:
- eric.wittmann@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close down the gateway link when it's no longer needed.ApiEndpointgetApiEndpoint(String organizationId, String apiId, String version)Gets the api endpoint from the gateway.GatewayEndpointgetGatewayEndpoint()Gets the gateway endpoint from the gatewaySystemStatusgetStatus()Gets the current status of the gateway.IPolicyProbeResponseprobe(String orgId, String apiId, String apiVersion, int idx, String apiKey, String rawPayload)voidpublishApi(Api api)Publishes a newApi.voidregisterClient(Client client)Registers a newClient.voidretireApi(Api api)Retires (removes) aApifrom the registry.voidunregisterClient(Client client)Removes anClientfrom the registry.
-
-
-
Method Detail
-
getStatus
SystemStatus getStatus() throws GatewayAuthenticationException
Gets the current status of the gateway.- Returns:
- the system status
- Throws:
GatewayAuthenticationException- when unable to authenticate with gateway
-
publishApi
void publishApi(Api api) throws PublishingException, GatewayAuthenticationException
Publishes a newApi.- Parameters:
api- the api being published- Throws:
PublishingException- when unable to publish apiGatewayAuthenticationException- when unable to authenticate with gateway
-
retireApi
void retireApi(Api api) throws PublishingException, GatewayAuthenticationException
Retires (removes) aApifrom the registry.- Parameters:
api- the api to retire/remove- Throws:
PublishingException- when unable to retire apiGatewayAuthenticationException- when unable to authenticate with gateway
-
registerClient
void registerClient(Client client) throws RegistrationException, GatewayAuthenticationException
Registers a newClient. An client is ultimately a collection of contracts to managed apis.- Parameters:
client- the client being registered- Throws:
RegistrationException- when unable to register clientGatewayAuthenticationException- when unable to authenticate with gatewayPublishingException- when unable to publish client
-
unregisterClient
void unregisterClient(Client client) throws RegistrationException, GatewayAuthenticationException
Removes anClientfrom the registry.- Parameters:
client- the client to remove- Throws:
RegistrationException- when unable to registerGatewayAuthenticationException- when unable to authenticate with gateway
-
getGatewayEndpoint
GatewayEndpoint getGatewayEndpoint() throws GatewayAuthenticationException
Gets the gateway endpoint from the gateway- Returns:
- the gateway endpoint
- Throws:
GatewayAuthenticationException- when unable to authenticate with gateway
-
getApiEndpoint
ApiEndpoint getApiEndpoint(String organizationId, String apiId, String version) throws GatewayAuthenticationException
Gets the api endpoint from the gateway.- Parameters:
organizationId- the org idapiId- the api idversion- the version- Returns:
- the api endpoint
- Throws:
GatewayAuthenticationException- when unable to authenticate with gatewayNotAuthorizedException- when not authorized to perform action
-
close
void close()
Close down the gateway link when it's no longer needed.
-
probe
IPolicyProbeResponse probe(String orgId, String apiId, String apiVersion, int idx, String apiKey, String rawPayload) throws RegistrationException, GatewayAuthenticationException
-
-