Package com.avoka.fc.core.util
Class HttpClientUtils
- java.lang.Object
-
- com.avoka.fc.core.util.HttpClientUtils
-
public class HttpClientUtils extends Object
Provides Apache HttpClient utility methods.
-
-
Constructor Summary
Constructors Constructor Description HttpClientUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(org.apache.http.client.methods.HttpRequestBase request, org.apache.http.HttpResponse response)Close the HttpClient GET request silentlystatic voidinvokePost(String url, Map<String,String> params, int timeout)Invoke the given URL using HTTP POST
-
-
-
Method Detail
-
invokePost
public static void invokePost(String url, Map<String,String> params, int timeout)
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
-
-