public class HttpClientUtil extends Object
Constructor and Description |
---|
HttpClientUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
appendParamsToUrl(String url,
List<HttpRequestNameValuePair> params) |
org.apache.http.client.methods.HttpRequestBase |
createRequestBase(RequestAction requestAction) |
org.apache.http.HttpResponse |
execute(org.apache.http.client.HttpClient client,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase method,
PrintStream logger) |
static String |
paramsToString(List<HttpRequestNameValuePair> params) |
public org.apache.http.client.methods.HttpRequestBase createRequestBase(RequestAction requestAction) throws IOException
IOException
public static String appendParamsToUrl(String url, List<HttpRequestNameValuePair> params) throws IOException
IOException
public static String paramsToString(List<HttpRequestNameValuePair> params) throws IOException
IOException
public org.apache.http.HttpResponse execute(org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext context, org.apache.http.client.methods.HttpRequestBase method, PrintStream logger) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2016–2025. All rights reserved.