use of io.gravitee.definition.model.HttpClientOptions in project gravitee-gateway by gravitee-io.
the class EndpointDiscoveryConsulVerticle method createEndpoint.
private Endpoint createEndpoint(Service service) {
String address = service.getAddress();
if (address == null || address.trim().isEmpty()) {
address = service.getNodeAddress();
}
DiscoveredEndpoint endpoint = new DiscoveredEndpoint("consul:" + service.getId(), "http://" + address + ':' + service.getPort());
endpoint.setHttpClientOptions(new HttpClientOptions());
return endpoint;
}
Aggregations