Class HttpClientUtil
java.lang.Object
jenkins.plugins.http_request.util.HttpClientUtil
- Author:
- Janario Oliveira
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringappendParamsToUrl(String url, List<HttpRequestNameValuePair> params) org.apache.hc.client5.http.classic.methods.HttpUriRequestBasecreateRequestBase(RequestAction requestAction) org.apache.hc.core5.http.HttpResponseexecute(org.apache.hc.client5.http.classic.HttpClient client, org.apache.hc.client5.http.protocol.HttpClientContext context, org.apache.hc.client5.http.classic.methods.HttpUriRequestBase method, PrintStream logger) static StringparamsToString(List<HttpRequestNameValuePair> params)
-
Constructor Details
-
HttpClientUtil
public HttpClientUtil()
-
-
Method Details
-
createRequestBase
public org.apache.hc.client5.http.classic.methods.HttpUriRequestBase 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.hc.core5.http.HttpResponse execute(org.apache.hc.client5.http.classic.HttpClient client, org.apache.hc.client5.http.protocol.HttpClientContext context, org.apache.hc.client5.http.classic.methods.HttpUriRequestBase method, PrintStream logger) throws IOException - Throws:
IOException
-