Example #1
0
  public HttpAdminClient(String host, int port, String urlPathPrefix) {
    this.host = host;
    this.port = port;
    this.urlPathPrefix = urlPathPrefix;

    httpClient = HttpClientFactory.createClient();
  }
  public HttpAdminClient(
      String scheme, String host, int port, String urlPathPrefix, String hostHeader) {
    this.scheme = scheme;
    this.host = host;
    this.port = port;
    this.urlPathPrefix = urlPathPrefix;
    this.hostHeader = hostHeader;

    adminRoutes = AdminRoutes.defaults();

    httpClient = HttpClientFactory.createClient();
  }