public class ConnectionUtils extends Object
Modifier and Type | Method and Description |
---|---|
HttpURLConnection |
connectToEndpoint(URI endpoint,
Map<String,String> headers) |
HttpURLConnection |
connectToEndpoint(URI endpoint,
Map<String,String> headers,
String method) |
static ConnectionUtils |
getInstance() |
int |
getTimeoutMillis() |
public static ConnectionUtils getInstance()
public int getTimeoutMillis()
public HttpURLConnection connectToEndpoint(URI endpoint, Map<String,String> headers) throws IOException
IOException
public HttpURLConnection connectToEndpoint(URI endpoint, Map<String,String> headers, String method) throws IOException
IOException