java.lang.Object
org.gcube.vomanagement.usermanagement.impl.ws.utils.HttpUtils

public class HttpUtils extends Object
Http utils methods for web services
Author:
Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
  • Constructor Details

    • HttpUtils

      public HttpUtils()
  • Method Details

    • executeHTTPGETRequest

      public static String executeHTTPGETRequest(String requestPath, org.apache.http.client.CredentialsProvider credsProvider, org.apache.http.client.protocol.HttpClientContext localContext, org.apache.http.HttpHost target)
      Execute an http GET request and returns the JSON response
      Parameters:
      requestPath -
      credsProvider -
      localContext -
      target -
      Returns:
      a JSON string on success, null otherwise