Class HttpUtils
java.lang.Object
org.gcube.vomanagement.usermanagement.impl.ws.utils.HttpUtils
Http utils methods for web services
- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringexecuteHTTPGETRequest(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
-
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-- Returns:
- a JSON string on success, null otherwise
-