public class GatewayClient extends Object
| Constructor and Description |
|---|
GatewayClient(String endpoint,
org.apache.http.impl.client.CloseableHttpClient httpClient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
io.apiman.gateway.engine.beans.ServiceEndpoint |
getServiceEndpoint(String organizationId,
String serviceId,
String version) |
io.apiman.gateway.engine.beans.SystemStatus |
getStatus() |
void |
publish(io.apiman.gateway.engine.beans.Service service) |
void |
register(io.apiman.gateway.engine.beans.Application application) |
void |
retire(String organizationId,
String serviceId,
String version) |
void |
unregister(String organizationId,
String applicationId,
String version) |
public GatewayClient(String endpoint, org.apache.http.impl.client.CloseableHttpClient httpClient)
endpoint - the endpointhttpClient - the http clientpublic io.apiman.gateway.engine.beans.SystemStatus getStatus()
throws GatewayAuthenticationException
GatewayAuthenticationExceptionISystemResource.getStatus()public io.apiman.gateway.engine.beans.ServiceEndpoint getServiceEndpoint(String organizationId, String serviceId, String version) throws GatewayAuthenticationException
GatewayAuthenticationExceptionIServiceResource.getServiceEndpoint(java.lang.String, java.lang.String, java.lang.String)public void register(io.apiman.gateway.engine.beans.Application application)
throws io.apiman.gateway.engine.beans.exceptions.RegistrationException,
GatewayAuthenticationException
io.apiman.gateway.engine.beans.exceptions.RegistrationExceptionGatewayAuthenticationExceptionIApplicationResource.register(io.apiman.gateway.engine.beans.Application)public void unregister(String organizationId, String applicationId, String version) throws io.apiman.gateway.engine.beans.exceptions.RegistrationException, GatewayAuthenticationException
io.apiman.gateway.engine.beans.exceptions.RegistrationExceptionGatewayAuthenticationExceptionIApplicationResource.unregister(java.lang.String, java.lang.String, java.lang.String)public void publish(io.apiman.gateway.engine.beans.Service service)
throws io.apiman.gateway.engine.beans.exceptions.PublishingException,
GatewayAuthenticationException
io.apiman.gateway.engine.beans.exceptions.PublishingExceptionGatewayAuthenticationExceptionIServiceResource.publish(io.apiman.gateway.engine.beans.Service)public void retire(String organizationId, String serviceId, String version) throws io.apiman.gateway.engine.beans.exceptions.RegistrationException, GatewayAuthenticationException
io.apiman.gateway.engine.beans.exceptions.RegistrationExceptionGatewayAuthenticationExceptionIServiceResource.retire(java.lang.String, java.lang.String, java.lang.String)Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.