Package com.avoka.fc.core.util
Class HttpClientUtils
java.lang.Object
com.avoka.fc.core.util.HttpClientUtils
Provides Apache HttpClient utility methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close
(org.apache.http.client.methods.HttpRequestBase request, org.apache.http.HttpResponse response) Close the HttpClient GET request silentlystatic void
invokePost
(String url, Map<String, String> params, int timeout) Invoke the given URL using HTTP POST
-
Constructor Details
-
HttpClientUtils
public HttpClientUtils()
-
-
Method Details
-
invokePost
Invoke the given URL using HTTP POST- Parameters:
url
- the URL to invokeparams
- the POST parameterstimeout
- the timeout in milliseconds
-
close
public static void close(org.apache.http.client.methods.HttpRequestBase request, org.apache.http.HttpResponse response) Close the HttpClient GET request silently- Parameters:
request
- the HttpGet requestresponse
- the HttpResponse object
-