Package jenkins.plugins.instana.util
Class HttpClientUtil
java.lang.Object
jenkins.plugins.instana.util.HttpClientUtil
public class HttpClientUtil extends Object
-
Constructor Summary
Constructors Constructor Description HttpClientUtil()
-
Method Summary
Modifier and Type Method 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)
-
Constructor Details
-
HttpClientUtil
public HttpClientUtil()
-
-
Method Details
-
createRequestBase
public org.apache.http.client.methods.HttpRequestBase createRequestBase(RequestAction requestAction) throws IOException- Throws:
IOException
-
appendParamsToUrl
public static String appendParamsToUrl(String url, List<HttpRequestNameValuePair> params) throws IOException- Throws:
IOException
-
paramsToString
- Throws:
IOException
-
execute
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- Throws:
IOException
InterruptedException
-