Package org.openrefine.util
Class HttpClient
- java.lang.Object
-
- org.openrefine.util.HttpClient
-
public class HttpClient extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpClient()
HttpClient(int delay)
HttpClient(int delay, int retryInterval)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Pattern
fromHostsToPattern(String hostsList)
String
getAsString(String urlString, org.apache.hc.core5.http.Header[] headers)
String
getResponse(String urlString, org.apache.hc.core5.http.Header[] headers, org.apache.hc.core5.http.io.HttpClientResponseHandler<String> responseHandler)
String
postNameValue(String serviceUrl, String name, String value)
-
-
-
Method Detail
-
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
public String postNameValue(String serviceUrl, String name, String value) throws IOException
- Throws:
IOException
-
-