private void updateLocation() { setEndpoint("http" + (isSsl() ? "s" : "") + "://" + host + ":" + port + root); }
private void updateLocation() { setEndpoint("http" + (isSsl() ? "s" : "") + "://" + host + ":" + port + root); }
public static void toJson(HttpLocation obj, java.util.Map<String, Object> json) { if (obj.getEndpoint() != null) { json.put("endpoint", obj.getEndpoint()); } if (obj.getHost() != null) { json.put("host", obj.getHost()); } json.put("port", obj.getPort()); if (obj.getRoot() != null) { json.put("root", obj.getRoot()); } json.put("ssl", obj.isSsl()); } }
public static void toJson(HttpLocation obj, java.util.Map<String, Object> json) { if (obj.getEndpoint() != null) { json.put("endpoint", obj.getEndpoint()); } if (obj.getHost() != null) { json.put("host", obj.getHost()); } json.put("port", obj.getPort()); if (obj.getRoot() != null) { json.put("root", obj.getRoot()); } json.put("ssl", obj.isSsl()); } }
/** * Gets a HTTP client to access the service. * * @return the HTTP client, configured to access the service */ @Override public HttpClient retrieve() { HttpClientOptions options; if (config != null) { options = new HttpClientOptions(config); } else { options = new HttpClientOptions(); } options.setDefaultPort(location.getPort()).setDefaultHost(location.getHost()); if (location.isSsl()) { options.setSsl(true); } return vertx.createHttpClient(options); }
/** * Gets a HTTP client to access the service. * * @return the HTTP client, configured to access the service */ @Override public HttpClient retrieve() { HttpClientOptions options; if (config != null) { options = new HttpClientOptions(config); } else { options = new HttpClientOptions(); } options.setDefaultPort(location.getPort()).setDefaultHost(location.getHost()); if (location.isSsl()) { options.setSsl(true); } return vertx.createHttpClient(options); }