Package com.google.refine.util
Class HttpClient
java.lang.Object
com.google.refine.util.HttpClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static PatternfromHostsToPattern(String hostsList) getAsString(String urlString, org.apache.hc.core5.http.Header[] headers) getResponse(String urlString, org.apache.hc.core5.http.Header[] headers, org.apache.hc.core5.http.io.HttpClientResponseHandler<String> responseHandler) postNameValue(String serviceUrl, String name, String value)
-
Constructor Details
-
HttpClient
public HttpClient() -
HttpClient
public HttpClient(int delay) -
HttpClient
public HttpClient(int delay, int retryInterval)
-
-
Method Details
-
fromHostsToPattern
-
getAsString
public String getAsString(String urlString, org.apache.hc.core5.http.Header[] headers) throws IOException - Throws:
IOException
-
getResponse
public String getResponse(String urlString, org.apache.hc.core5.http.Header[] headers, org.apache.hc.core5.http.io.HttpClientResponseHandler<String> responseHandler) throws IOException - Throws:
IOException
-
postNameValue
- Throws:
IOException
-