Package org.platformlayer.ops.helpers

Examples of org.platformlayer.ops.helpers.CurlRequest.executeRequest()


    String url = "http://127.0.0.1:8080/solr/admin/cores?core=" + coreKey;

    url += "&action=" + action;

    CurlRequest request = new CurlRequest(url);
    CurlResult result = request.executeRequest(target);
    log.info("result: " + result);
    return result;
  }

}
View Full Code Here


    @Override
    public <T> T doRequest0(Class<T> c) {
      CurlRequest request = toCurlRequest();
      CurlResult result;
      try {
        result = request.executeRequest(target);
      } catch (OpsException e) {
        throw new OpenstackException("Error issuing request", e);
      }

      int httpStatus = result.getHttpResult();
View Full Code Here

        String url = "http://ftp.debian.org/debian/dists/stable/Release.gpg";
        CurlRequest request = new CurlRequest(url);
        request.proxy = proxy;
        request.timeout = TimeSpan.FIVE_SECONDS;
        try {
          CurlResult result = request.executeRequest(target);
          if (result.getHttpResult() != 200) {
            log.info("Unexpected response code while testing proxy: " + proxy + ".  Code="
                + result.getHttpResult());
            continue;
          }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.